Mark, That is an excellent example!

I'd use ID whenever the item is unique on a page - as it would have to be
here. ID's have more specificity than classes and that may be needed at some
point when/if there is a conflict.

2cents
Russ


> 
> Image I have a picture that appears once on lots of pages so I give it:
> 
> <img id="galah" src...>
> 
> with the style:
> 
> img#galah { border:0; }
> 
> But on one page I want to give it more emphasis - I decide that a big pink
> border will be perfect - how do I do this? Well on the page in question I
> put a class or id on the body:
> 
> <body class="birdsOfAustralia">
> 
> and add this into my css:
> 
> body.birdsOfAustralia img#galah { border: 50px solid pink; }
> 
> I've take this to such extremes that on sites where every page has a unique
> identifier I chuck that in the body tag on every page as either a class or
> id (any thoughts on which?). This just makes it super simple to write in
> that odd exception, without hacking at the content itself.
> 
> 
> Cheers
> 
> Mark
> 
> 
> ------------------
> Mark Stanton
> Technical Director
> Gruden Pty Ltd
> Tel: 9956 6388
> Mob: 0410 458 201
> Fax: 9956 8433
> http://www.gruden.com
> 
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> *****************************************************

Thanks
Russ

-----------------------------------------------
Russ Weakley
Max Design
Phone: (02) 9410 2521
Mobile: 0403 433 980
Email: [EMAIL PROTECTED]
http://www.maxdesign.com.au
-----------------------------------------------


*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to