PDA

View Full Version : CSS Selectors not Working in MXML?


OmenKing
04-11-2008, 07:08 PM
I've tried the following and it doesn't work:

Panel.main Label { ... }

Is it not possible in mxml to select elements like that?
I get warning and it doesn't work:

Warning: CSS selector type is not supported: 'Panel.main Label'

dr_zeus
04-11-2008, 09:24 PM
Nope. CSS support in Flex is very very basic.
You can do this:

Panel {}

or this:

.myStyleName {}

That's about it. Want more? Vote for this CSS feature request (https://bugs.adobe.com/jira/browse/SDK-14385) in the public bug system.