Re: [css-d] Attributes of classes

2005-12-09 Thread Vicki Stebbins
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/


[css-d] Attributes of classes

2005-12-03 Thread Vicki Stebbins
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 think I've gone through every which way of writing it, to no avail...

The new pages with the new class attributes are here:
http://www.explorerexperience.com.au/testimonialsb.shtml
http://www.explorerexperience.com.au/outbackb.shtml

The CSS for these two new pages is here:
http://www.explorerexperience.com.au/styles/imagetripb.css

How I want the pages to look is here:
http://www.explorerexperience.com.au/outback.shtml
http://www.explorerexperience.com.au/testimonials.shtml

These pages are using the old style sheet and only have one div in each page...

Many thanks in advance.

Regards
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/