Following on from what Pinkeboo said above, id's are used for thing's like header's, footer's, sidebar's etc. and are like this in The CSS:
#idname { property: value; text-align: right }
ID's are shown with HTML usually with div tags like this:
<div id="idname">Content content content etc</div>
Classes can be used several times and a commonly used style of classes is to align. For example, the CSS to centre align anything
.center { text-align: center; } and the HTML would be like this:
<div class="right"></div>
If you want the same class for different HTML tags, you can do this:
p.right { property:value; }
div.right { different stuff: from above; } and
<p class="right">content</p>
<div class="right">Differently styled right class</div>
I hope you have found this useful.
Edited by KingSingh, 04 August 2008 - 02:21 PM.