Previous Message
Next Message

Re: [css-d] # in style sheet

Sent by annelise on 11 February 2003 00:12


On Mon, 10 Feb 2003, Tim Laureska wrote:

> what is the purpose of the # sign prefixing some of
> the selectors in a style sheet?  And I guess more importantly when do
> you use them? .

Use # when the selector is an id.

Use . as a prefix when the selector is a class.

Use ids when there will only ever be one of that on any given page,
example:  id="pagefooter".  Classes you can use as many times as you like
on a page.

Annelise
Previous Message
Next Message

Message thread: