Advertisement
Promo

Become a member of the ZDNet UK community

Jake Rayson

View blog's RSS Feed

Web design & FOSS

Front-end web technologies and Free Open Source Software.

Sunday 7 September 2008, 5:06 PM

CSS on a tight leash

Posted by Jake Rayson

My time at The Ministry is soon to draw to a close, and I have written some scintillating documentation as a parting gift. The most important by far is entitled CSS management (I have a way with words…).

What it boils down to is this: without management, your lovingly crafted CSS will become a tangled soup of despair, despondency and ignorance. This must not be allowed to pass. And this is exactly what has happened on two large corporate redesigns I’ve had the privilege to work on.

So, here is my solution:

1. Appoint a Guardian Of The CSS. One person solely responsible for upkeep of stylesheets.

2. Separate structure from presentation - ie all styling to be done via the stylesheets, not by inline or HTML styling.

3. CSS file structure

• core.css - global styles & immutable. Guardian only. • specific.css - styles for specific pages (eg home page). Guardian only. • temporary.css - open to everyone, workaday stylesheet.

4. CSS review process: the Guardian has a calendarised monthly task of incorporating styles from temporary.css into core.css and specific.css

Just to re-emphasise: this is a management issue, and is key to the upkeep of the stylesheets.


Comments on this post

Jake Rayson

This member is ranked #5 in our top 100

  • Jake Rayson
  • Web / Multimedia Developer, North Kent
  • Member since: November 2006

Site Activity Rating 6

CoreTechs

Contacts' Latest Discussions

Number of Tracked Discussions: 2,328

Adrian Bridgwater Adrian Bridgwater

Whither Novell?

Tuesday 15 December 2009, 11:26 PM

1 comment
roger andre roger andre

That Random Coin Toss?

Monday 14 December 2009, 12:28 AM

2 comments

Contacts' Latest Blogs

Number of Contacts Blogs: 8

Avatar David Meyer

Android passes 20,000 apps mark

Tuesday 15 December 2009, 5:05 PM

0 comments
Avatar Karen Friar

HP workers set dates for strikes

Thursday 3 December 2009, 7:57 PM

1 comment

Skip Sub Navigation Links to CNET Brand Links

Help

Become part of the ZDNet community.

Newsletters