Nested within these pages...

May 11, 2007 12:59 AM | Comments (0)

I spent a couple of hours yesterday cleaning some old website's code that was handed over to me for temporary maintenance.

It is the year 2007 but people are still using nested tables to arrange their text. Imagine a three-column table, with spacer GIFs in the right and left columns and the body text inside the middle column. And that table's residing inside another table.

An external stylesheet was used, but instead of simply assigning properties to the 'body' selector to control the main font styles, a class called '.body' was created. No 'h1' or 'h2' were used - extra styles were created for headers and subheaders. No images were labelled.

I realised with some dismay that I probably have a better understanding of CSS and XHTML than most of the designers we've outsourced the work to. Not to say I'm such an expert myself - I've been out of it for a while and play around with code occasionally just to make sure I don't forget what I've learnt over the years. An entirely CSS-based template (which came with the default installation) could have been downgraded into a web of nested tables when the look was customised.

Essentially, the designer(s) went back to their comfort zone, finding safety in tables. I'll call this 'code atavism'.

Then this post came up - 70 expert ideas for better CSS coding, with links to many more resources. It's comprehensive and I learnt a few new things that will hopefully be incorporated into my coding practices in future. I might even start sending links like this for people to read...

Technorati tags: CSS, web+standards

Recent entries

Comments

Leave a comment

Read this before posting:
  1. Please don't post anything racist, inflammatory or derogatory in any way.
  2. Your comment may be published immediately, because I kind of trust you (unless you're an evil spambot). However, I reserve the right to edit or un-publish your comment.

Subscribe to my feed

Feedburner

About this Entry

This page contains a single entry by vantan published on May 11, 2007 12:59 AM.

Trattoria Lafiandra was the previous entry in this blog.

Coming up... is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

On Twitter...