|
|
 |
Re: FN-FORUM: CSS issues in IE
date posted 31st January 2005 22:58
In freelance.forum, Jonathan Clarke [EMAIL REMOVED] (Jonathan
Clarke) wrote in [EMAIL REMOVED]
> just out of interest how do decide when to use an ID or a Class?
>It seems to me they do essentially the same thing.
An ID is used when the style is specific to one item on the page- a class
is a reusable style. You could make everything a class, and sometimes have
only one instance of the class. Having an ID is useful, because you can
change attributes of the style at runtime.
--
Marc Wilson
Cleopatra Consultants Limited - IT Consultants
2 The Grange, Cricklade Street, Old Town, Swindon SN1 3HG
Tel: (44/0) 845 890-3012 Fax: (44/0) 871 236-1531
Skype: cleo-marc
Mail: [EMAIL REMOVED] Web: http://www.cleopatra.co.uk
_________________________________________________________________
Try MailTraq at https://my.mailtraq.com/register.asp?code=cleopatra
|
 |
|