Home > Flash Builder 4, Flex, RIA > CSS in Flex 4

CSS in Flex 4

CSS  uses type selectors for both different namespace components as described in below example: 

<fx:Style>

    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/halo";

    s|Button {
        color: #000000;
    }
    mx|DateChooser {
        color: #FF0000;
    }
</fx:Style>

 

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: