Home · Examples · Make your life easier

Make your life easier

Creating a web site which uses Cascading style sheets (CSS) is a lot easier to maintain than creating a web site without it. That is, if your familiar with most of the useful of the CSS properties.

For instance, lets pretend you attached a style sheet to all of your pages on your Web site, using either the @import rule, or the link HTML element.

<style type="rext/css"> @import url(/css/styles.css); </style>

<link rel="stylesheet" href="/css/styles.css" type="text/css">

Now, after you've finished deploying a HUGE web site which has several thousand pages, and its all static, your boss walks in, and he says You know, the client doesn't like that color scheme... we need to try something else.

Do you throw up your hands and quit the job? -- No way! CSS allows you to make changes to of your pages color, padding, margins, alignment, background images, font size and families, positioning, floating, etc. all from one single CSS file.

All you need to do is open up that one single file, make an edit, and re-upload it. Boom - your done.

So all within within minutes, the colors of whatever you needed fixed is changed, for every page on your site, instantly!

Dec 27, 2006

Comments

This article hasn't been commented yet.

Write a comment

* = required field

:

:

:


3 + 1 =