Warning: This is a rant. But if that's not what blog is good for, then...
Dan Cederholm and
Jeffrey Zeldman are two of the best in the web development business. Their websites are beacons of cool, standards-based design.* Their books, like Cederholm's
Web Standards Solutions: The Markup and Style Handbook and Zeldman's
Designing with Web Standards, are best-sellers.
But, when I sat down this morning to start building a new website for a client, I picked up each one and, after a few minutes, put it back on the shelf in frustration.
I want to use a basic, two-column
XHTML layout. But it's not in either of these books.
In Web design, XHTML is the way to go, each of these authors proclaim. No question about it. XHTML means designing without the old, outmoded use of tables in a layout. It separates formatting from content. Better accessibility. Loads faster. Makes formatting much easier to modify. Displays better in mobile devices.
Great, right? Books with titles like the above should come with code for a complete two-column layout, and they should explain how it all works.
Unfortunately, what these books come with amounts to a long discussion of how
parts of
some kinds of two-column layouts work,
sort of,
except when they don't.
Why? Because there is still (to my knowledge - and definitely not in these books) no
standard XHTML two-column layout that works well in most popular browsers.
There are two-column layouts that work well for masters like Cederholm and Zeldman, and their books attempt to explain why these two-column layouts work well. But, as a less skilled developer like me (no slouch, mind you!) finds as soon as he tries to adapt one of these two-column layouts to a particular design - by including (god forbid) a vertical border on one of the columns, say - the layout goes south. In one browser or another, things on the page don't line up. Gaps appear. Etc.
A vertical border is not that much to ask, but using one between two columns calls for coding "hacks" (ad hoc code to make the layout look the same in popular browsers like Internet Explorer and Netscape).
And, if you add something else to the layout after you get your vertical border problems straightened out, well, that could require even more hacks. Meanwhile, your billable hours are wasting away....
Are Cederholm and Zeldman to blame for this state of affairs. Certainly not.
The real problem lies in the fact that browser makers like
Microsoft and
Mozilla won't agree about how to handle Web coding standards. This rant should really be directed at them.
Cederholm and Zeldman are stars because they have figured out how to use XHTML
and make their sites look great in most browsers. I wish they could do more to make my XHTML sites do the same. A tall order, I admit.
*
The look and feel of The McBuzzBlog draws heavily from one of several Blogger templates Dan created.