Previous Message
Next Message

using id AND class?

Sent by Austin Harris on 27 April 2007 10:10


Morning all,

I am doing some work on a site that I haven't built and have found something slightly strange...

basis of html;

<div id="holder" class="home">

blah blah

</div>

css;

div#holder.home {
styles...
}

Strangely this does work across all the browsers I have (briefly) tested on yet does cause
validation errors.

I can't see any issues as to why taking out the #holder from the css will make any difference but
was really more wondering why someone would have done this in the first place...

Austin
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: