At 08:44 AM 4/12/2005, Vicki Stebbins wrote:
>Hi all,
>
>I've got myself going in circles with this, I initially had the same div ID
>in these pages which could be multiple times. It got a validation error.
>
>I realise now that it's a no no and have made these divs CLASSES. That
>works but now some of my classes on <li class="title"> for instance now
>don't work?
>

I thought I'd best let the list know this is now sorted out (and anyone who 
may be struggling with the same problem) many thanks to Peter Abramowicz 
who said this:
The reason it was working before with ID's is that ID's are more specific 
then CLASSES, once you switched to CLASSES the selector wasn't specific 
enough. One solution would be to modify to the title selector - div#ufwus 
li.title.

For a fuller explanation of specificity check out: 
http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html.

Now leaving all that aside, wouldn't it make more sense 'semantically 
speaking' to have the title as a hx element?
ie.
ul h2{
font: normal bold small Arial, Verdana, sans-serif;
color: red;
margin:1em .5em 1em;
}

PeterA.

Thanks once more to the list and Peter.

8-)
Vicki

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to