mardi 15 mars 2011
Web Sites: how to keep things tidy (with style sheets)
Do you like this story?
Almost three years ago, I have inherited a web site management. That web site was developed by a third party (a not-so-much-skilled web designer), using a mixture of different programming languages (JavaScript and VBScript) supported by CSS style sheets. In the past days, I've been asked to revamp the web site. Mainly, they asked for a change of colors... well, actually they wanted to obtain some sort of negative image of the web site. That means changing the black into white, and the whole grey color palette.
I am sure some of you will think that it's quite an easy task to do. And that's true... just when you (or your predecessor) have kept the things tidy!
What will I do? I don't know at the moment. The marketing department will give me the new palette, and probably I will spend some time changing things around, and trying to find the best way to deal with the issue. Probably I will extensively use the Web Developer Extension for Firefox and its CSS "Border Box Model" in order to search and understand how the CSS styles were applied and used.
When defining the styles, please use meaning names (like black_title or white_heading), not cryptic names like adt!
Another thing: if you decide to use external style sheets (and I strongly recommend it) do not - ever - add styles to the page. External files or styles in every page: never mix!
Those are simple and understandable advices. I don't follow those tips because I know someone else will take my job: I do it for myself! I could add more advices, however that's a good start. If whoever coded the web site I have to change, would have followed those recommendations, now my work would have been really easier and quick to complete.
Think about it. Web sites are not always made from scratch. You might be asked to change an old web site, and if things were not kept tidy, you might end up thrusting your head into a big mess!
This post was written by: Franklin Manuel
Franklin Manuel is a professional blogger, web designer and front end web developer. Follow him on Twitter
0 Responses to “Web Sites: how to keep things tidy (with style sheets)”
Enregistrer un commentaire