Title: RE: [WSG] CSS Rules - Naming Conventions

yeah I'm known to use

id="wrap"
id="masthead"
id="nav"
id="sidebar"
id="footer" etc etc

all the time trying to keep the names non-specific to the layout (like id="lefthandnav") cause when/if it changes later to a horizontal nav across the top i'd feel a bit silly :)

having a standard set is particularly handy if you have a bunch of sites that use the same convention. makes for easier changes later...

i'd be interested to hear if there were problems with hyphens in names? i use them  little. i knew underscores were no good, and i think i remember reading somewhere that names that *started* with a number were also problematic.. all ears if someone has some conclusive info..

cheers,
pete



-----Original Message-----
From: Stumpy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 16, 2004 4:24 PM
To: [EMAIL PROTECTED]
Subject: [WSG] CSS Rules - Naming Conventions



Just wondering what peoples thoughts/methods are when
naming your DIV's, ID's, etc. I vaguely remember IE4
not supporting underscores or hyphens, and therefore
use camel case, but I'm wondering if people use
various standard names like container, body, header,
footer, etc...

Cheers,
Craig

Try the new improved Yahoo! Australia & NZ Search at http://www.yahoo.com.au
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************

Reply via email to