On Oct 18, 2006, at 8:32 AM, frances wrote:
> Does anyone know of experienced css users creating or suggesting
> naming
> standards for classes and IDs?
I *never* put style information in the ID/class name. that means when
the time comes to rework the site, I can rework the style without
h
frances wrote:
> Does anyone know of experienced css users creating or suggesting naming
> standards for classes and IDs?
>
> Thanks for your help!
> -frances
The best theory, I believe, is to keep names, especially class names,
related to their function, as opposed to description.
So if y
I shy away from using ids and classes like .red or .bright simply because at
some point I may need to change the colours and then will have to change the
name too ie
.red {
color: red;
}
better:
.warning {
color: red;
}
__
css-d
Hi Frances,
With a layout like the following:
Navigation Area
Home
About
I use the following CSS:
.left-navi {
/* Main navi box */
width:120px;
}
.left-navi h1 {
/* Title font */
font-family: Verdana;
}
.l
Hello.
I've been working with css for a while now, but I still struggle with
creating flexible and re-usable Class and ID names. IDs are usually
easier since I most often use them for structure, so the left column is
#left-column, etc. But in cases where they are used to style content, I
am to