Peter Williams wrote:
Your question is somewhat ambiguous, but if you need to style
an element repeatedly on a page you should use a class, not
an id.

CSS
.prettything {styles;}

Markup
<span class=prettything">Pretty stuff</span>
With a class defined using just the dot nomenclature you
could use it on any element you need to.

<div class="prettything">Pretty div</div>
<p class="prettything">Pretty paragraph</p>
and so on.


What about :

#container{  styles }

#container p{more styles}

#container p.alert {color : #f00;}

Then if (for example) you have 10 paragraphs, you can style the select few by classing them as "alert" viz: <p class="alert">

--
Best Regards,

Bob McClelland

Cornwall (UK)
www.gwelanmor-internet.co.uk


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

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to