Are you remembering to start your style names with a period?

Label {
        font-size:12pt;
}

  - this is a vaild style that will be applied to all labels since  
the name matches a component

myStyle {
        font-size:24pt
}

  - this will compile, but  a label like <mx:Label  
stylename="myStyle" /> will not be in 24pt

.myStyle {
        font-size:24pt
}

- adding the leading period will now cause the label above to be 24pt.

don't forget that you can 'extend' (cascade?) styles, so:

Label.myStyle {
        font-weight: bold;
}

will result in a label <mx:Label styleName="myStyle" ... />

to be 12pt (from the Label style at the top) and bold, from the  
Label.myStyle style.

It's a bit like 'subclassing' the LabelStyle, but you have to set the  
styleName property if you don't
want the default Label style


On 19 Sep 2007, at 20:15, candysmate wrote:

> I haven't worked much with CSS so please bear with me ...
>

Reply via email to