Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Content Structure in the CSS document


corny - 3:40 pm on Nov 4, 2002 (gmt 0)


Are there any recommended structures for CSS documents themselves?

In my own CSS documents, I begin with body, but then do the classes/ids that involve page-layout, then move into font formatting and finish with link formatting.

It ends up something like this:

body{
}
#leftside{
}
#middle{
}
#rightside{
}

p h1 li etc{
}

#contextual fontstuff{
}

a{
}
#contextual a{
}

and so on.

I suppose some have the contextual elements adjacent to the parents instead of categorizing by what the id/class does.

How do you structure your CSS?


Thread source:: http://www.webmasterworld.com/css/377.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com