Just wanted to say thank you to all who answered.  The explanations and 
examples were very helpful.

Mark


-----Original Message-----
From: [EMAIL PROTECTED]
Sent: Tuesday, May 2, 2006 2:20 PM -07:00
To: [email protected]
Cc: Mark Fellowes [EMAIL PROTECTED]
Subject: [css-d] Classes and markup


ID and CLASS are in some ways inter-changeable.  However, you should 
only use ID once on a page, and you can use CLASS repeatedly.  Also you 
seem confused (like we all were once) between the way to mark up ID & 
CLASS and the way the CSS is written.

So you could have:-
<div id="rightcol">
<p class="ptext">blah blue text blah</p>
<p>text in the default colour</p>
<p class="ptext">more blue text</p>
</div>

and your CSS might look (in part) like:-

div#rightcol {float: right; margin: 0; padding: 0;}
p.ptext {color: #00F; back-ground-color: #ABCDEF;}

Whether you'd need to float you column right is NOT the issue here, I 
leave that to you !

Hope that helps

Tim
-- 
Tim Dawson,
Isle of Mull,
Scotland
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/

__________________________________________
your personal webtop. @ http://www.goowy.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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/

Reply via email to