100% Geek The Adventures of Peter Boughton:
CFML; Web Development; Photography.

a beautiful photo of north west Skye

Greetings, and welcome to my weblog, covering topics ranging from computing to photography; gadgets; gaming; and anything else I think I can make interesting.

For those that don't know me, I am Peter Boughton, a ColdFusion developer, amateur photographer, and a total utter genius.

(For those that do know me, please don't tell anyone the genius bit isn't true.)

If you'd like to contact me, please send an e-mail using a clear subject line to peter:blog.bpsite.net.

Categories:

Beyond Tables, Beyond Divs - Simple JavaScript Calculator III

As we (hopefully) all know, using HTML tables for layout is Bad and Wrong.

Unfortunately, the most common way people avoid using tables is to just replace their table, tr and td tags with divs, divs and more divs.

The div tag is a generic container that should be used as a last resort, if there are no other more suitable options.

Whilst the problem of excess divs is not limited to the conversion of table layouts, it is perhaps most obvious here, as it shows the developer is still stuck in the column+row frame of mind, rather than thinking about what they are actually displaying.


In this blog entry, I show an example of how avoiding this mindset can result in much simpler and cleaner code.

read more...

Posted by Peter on 30-August-08 at 17:32 ~ ~ Category: , ,