Why noone uses CSS for layout28 March 2007
Every once in a while I decide that my website need an overhaul, or at the very least a correction of old bugs. Most recently it was because I had a large backlog of image sets to add to the pictures section, and the index was getting rather long. One thing I decided would be nice is if the tiling of the images was to take account of window width rather than always being fixed at two across. I also decided to use CSS rather than tables. Big mistake.
If it is just images, then only a few lines of CSS are needed to adjust things like padding. The problem is that I occasionally tag images with caption, and this is where the nightmare starts. Sticking together images and captions requires some fancy nesting of (for instance) DIV elements, and even then some assumptions (e.g. text size) that I would rather do without have to be made. Eventually something reasonably functional gets made.