|
Each id (e.g. #wrapper) should only be used to define ONE instance of th element in the HTML. Classes (e.g. .wrapper) may be used any number of times to define several instances of tags. You specify the ID or CLASS in the CSS for the file and then use id="wrapper" or class="wrapper" (depending on whether it is # (id) or . (class)) in your opening element tag (e.g. <p class="right"></p>).
Elements are the tags (<p>, <h1>, etc).
IDs and CLASSes are a little more complex than just how to use them. When you get to selector level and dominance (advanced CSS) then it gets more interesting and useful.
__________________
Please login or register to view this content. Registration is FREE - Tumblog with thoughts, quotes, links, videos, images and my creations.
Please login or register to view this content. Registration is FREE - The best free web browser.
Please login or register to view this content. Registration is FREE - Firefox is now Firefail.
Last edited by Mooofasa; 11-22-2006 at 02:55 PM..
|