ZDNet UK


Skip to Main Content

  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Jobs
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


Become a ZDNet UK member

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 #16 in our top 100

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

Site Activity Rating 5

CoreTechs

Contacts' Latest Discussions

Number of Tracked Discussions: 1,192

roger andre roger andre

IBM's HERMES helps the aged

Wednesday 19 November 2008, 6:56 PM

1 comment
roger andre roger andre

Mysterious black radio ops in London

Wednesday 19 November 2008, 6:03 PM

2 comments
roger andre roger andre

A bucket with a hole by any other name

Wednesday 19 November 2008, 5:36 PM

1 comment

Contacts' Latest Blogs

Number of Contacts Blogs: 6

Avatar PeterJudge

Have you seen the Chinese Firefox?

Wednesday 19 November 2008, 5:40 PM

0 comments
Avatar roger andre

The Technological Singularity

Tuesday 18 November 2008, 12:32 AM

2 comments
Avatar mattloney

Gatwick air traffic control failure

Thursday 25 September 2008, 5:05 PM

1 comment