# CSS not working properly

**URL:** <https://forum.kirupa.com/t/css-not-working-properly/259908>\
**Category:** flash\
**Created:** [May 10, 2008, 1:04am UTC](https://forum.kirupa.com/t/css-not-working-properly/259908 "2008-05-10T01:04:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcraig24](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@bcraig24](https://forum.kirupa.com/u/bcraig24)\
**Post date:** [May 10, 2008, 1:04am UTC](https://forum.kirupa.com/t/css-not-working-properly/259908/1 "2008-05-10T01:04:16Z")

</div>

In my movie ive got my css working with xml data but theres one thing that wont work, Margin spacing.

My xml looks a bit like this

\<timetable\>  
\<day\>Monday\</day\>  
\<group\>\<span class=“one”\>group\</span\>\</group\>  
\<hours\>\<span class=“two”\>hours\</span\>\</hours\>  
\</timetable\>

The span is so that ‘group’ and ‘hours’ will stay on the same line in the text box.

This is my css…

.one {  
margin-left:20px;  
}

.two {  
margin-left:100px;  
}

But only the class ‘one’ margin space will work. class ‘two’ just stays directly next to ‘one’

ive tried margin0-right on one still wont work ive tried padding neither does that.

Can anyone please help??

---

<div class="post-metadata">

**Author:** ![pablo\_2006](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@pablo\_2006](https://forum.kirupa.com/u/pablo_2006)\
**Post date:** [May 10, 2008, 10:31pm UTC](https://forum.kirupa.com/t/css-not-working-properly/259908/2 "2008-05-10T22:31:22Z")

</div>

There’s a list of supported html tags here. Flash support for HTML is fairly limited.

[http://livedocs.adobe.com/flash/9.0/main/00000922.html](http://livedocs.adobe.com/flash/9.0/main/00000922.html)

I would be tempted to use 2 separate text boxes.

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [May 10, 2008, 11:00pm UTC](https://forum.kirupa.com/t/css-not-working-properly/259908/3 "2008-05-10T23:00:29Z")

</div>

Or maybe look at _Texformat.tabSt_ops and/or \*Textformat.indent \*in the Help files:  
ActionScript classes \> TextFormat \> tabStops (TextFormat.tabStops property)  
ActionScript classes \> TextFormat \> indent (TextFormat.indent property)

There’s also a useful example file under \*Text format tag \*in the Learning Actionscript 2.0 help book:  
Working with Text and Strings \> Using HTML-formatted text \> About supported HTML tags \> Text format tag
