On Mon, Mar 29, 2010 at 11:28 AM, Climis, Tim <tcli...@indiana.edu> wrote:
> If you use class names (form class="track") instead of id's then put in a dot 
> (.) instead of a hash (#).
> ---Tim

If you are truly new to css, you might wonder when to use id and when
to use class.

id is for unique elements -- on a page by page basis. Thus any element
(such as a div) that is given an id should be unique.

<div id="header">
......
</div>

Things like footer, menu, maincontent, masthead, or the form.

id is like your driver's license -- one to a customer.

For any elements that will be used more than once on a page you need
to use class.

class is like a room full of students. they may all be special in
their own way but they share common characteristics that can be
assigned together using the class name.

Just covering the bases in case you haven't stumbled across this
distinction yet.

Regards,
Claude
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to