Previous Message
Next Message

multiple classnames on one element

Sent by J. King on 27 January 2004 05:05


On Mon, 26 Jan 2004 14:33:55 -0600, Wil Cone [EMAIL-REMOVED]> wrote:

> Multiple classes are perfectly legal and are supported by IE5+, Moz,
> Safari, Opera 7...

Though IE5/6 don't select multiple classes quite right, at least according  
to CSS2 rules.
If you select, for example:

p.blue     {color:blue;}
p.blue.red {color:purple;}

The second style rule would be applied to <p class="blue red"> AND <p  
class="red"> in Internet Explorer.  In other agents it would only match  
the former (as it should).  In other words, it only pays attention to the  
last class specified.


-- 
J. King
http://jking.dark-phantasy.com/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message