Jump to content

Adding Color "Scheme" to a stylesheet


random1

Recommended Posts

Hey All,

 

I'm trying to apply a 'color scheme' to my CSS stylesheet.

 

In my sheet I have selectors for body and #footer.

 

I have this code at the bottom of the file:

 

/* Start Green Scheme */

body
{
background-color:green;
color:white;
}

#footer
{
background-color:green;
color:white;
}

/* End Green Scheme */

 

Yet they don't apply.

 

Isn't CSS processed by the browser top down with repeating selectors at the bottom taking precedence?

 

Any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/205742-adding-color-scheme-to-a-stylesheet/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.