Hi Toby,
I found some information in the Flex Builder 2 help section under "Length
format". I am not 100% sure, but I think you can write something like this in a
style declaration:
.myFont{
font-size.length[em];
font-size: 1.2;
}
This is just a guess, since I am no CSS specialist, and the documentation is
not really clear.
Best regards.
Torben Nielsen
Starvision Studios
"tobydussek" <[EMAIL PROTECTED]> wrote:
__________
>How can I use a unit of measurement for font size (eg 'em')?
>This works:
><mx:Label id="myLabel" text="This is a Label" fontSize="120"/>
>but this does not:
><mx:Label id="myLabel" text="This is a Label" fontSize="1.2em"/>
>
>The documentation says about length:
>>>The Length format applies to any style property that takes a size
>>>value, such as the size of a font. Length is of type Number.
>>>The Length type takes the following form:
>>>[+|-]length[unit]
>and it goes on to list a table of length units, including 'em'
>So, anyone know the secret?
>
>Toby Dussek
>
>
>
>
>
>
>
>
>--
>Flexcoders Mailing List
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/