How to Have the Benefits of Tables and Eat Your CSS Cake Too

comments edit

You've heard CSS purists beat it into you over and over again that "Tables are bad, umkaaay?". But man, what a pain when you're trying to do something as simple as a web form and you want the labels to align to the right and the controls to align to the left.

So Dimitri here rides in to the rescue with TILT (Table Injection for Layout Technique). He showed this to me a few weeks ago and has finally polished it to the point that he's ready to tell the world.

Essentially, this technique allows you to mark up your code semantically like the CSS purist you are, but then with some crafty usage of Javascript, modify the DOM and inject a TABLE (with all the benefits therein). Genius.

Comments