View Single Post
  #8  
Old 04-11-2005, 11:42 PM
 
stever stever is offline
 

Newbie
  
Join Date: Aug 2004
Posts: 5
 

Default

mrbiggles, when you are learning CSS, the important thing to remember is the "cascading" in "cascading style sheets".

That means that there is a cascade of importance in the style rules and it may well be that you have written a rule elsewhere that overrides your class.

To take an example, let's say that you had a #header ID controlling the speedbar container and that you had made a rule {color: #000;}.

In this case, making the td a class of .tabfont {color: #fff;} wouldn't change it, because you have already been specific and said: "I want all color within #header to be black."

What would change it is if you made a rule: #header td.tabfont {color: #fff;}, which now says: "I want all the table cells within the header container which have the class of tabfont to be white."

Anyway, may be something to check - enjoy the CSS classes!

To make a great oversimplification, the cascade normally runs from the general to the specific...
__________________
X-Cart Gold 3.5
Reply With Quote