Forum Moderators: not2easy

Message Too Old, No Replies

Calling fro multiple CSS

conditional calling

         

kadnan

4:31 am on Aug 18, 2007 (gmt 0)

10+ Year Member



Hello All

Is there any possibility of calling same rules on elements from different css files?

Suppose I have two CSS files with same rules/classes but with different attributes. For instance in one css(CSS1.css) i have a class

.navigate{
background:brown
}

while in other(CSS2.css) it has been defined as:

.navigate{
background:grey
}

is it possible that when i call class in any element, i could also define which file is being called?

Thanks

Marshall

6:40 am on Aug 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes you can, but if the two sheets feed the same page at the same time, the first one will take priority. It is the same as an embeded style takes priority over an external style.

Marshall