Starting with a Clean Application style

When you create a new Application, by default the background color is bluish grey. Behind that the bluish grey color is a background image. This can be confusing to fix if you are trying to style the background.

The Flex provides another style sheet called “plain” that sets all padding to 0 pixels, removes the default background image, sets the background color to white, and left-aligns the children. The following example shows how you can set this style:


Unfortunately, this still flashes the blue grey background at start up and when the browser is resized. To fix this set the backgroundColor to #FFFFFF in the Application tag like so:



If you don’t want all the default styles of the “plain” style sheet and just want to clean up the background you can use the following code:

[html]

[/html]

Starting with a Clean Application style

One thought on “Starting with a Clean Application style

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