stormdamage.org - Art, Webdesign and CSS.

Posts Tagged ‘layout’

Sep
30

Getting CSS to behave like tables

Posted by Leonie under CSS.

As much as I adore CSS, it seemed to me that it had one main limitation - it’s impossible to make it behave like tables. For example, it you have three columns of data beside each other, if one pushes down further than the others, the adjacent two won’t push down to match. Something like this happens instead:

The temptation is of course, to just use a sneaky table. But after some research I found this elegant solution by Pixy. The main beauty of this technique is that it works even in IE6, and doesn’t require any hacks. However, it is a little hard to get your head around if you’re new to CSS, so here’s my simplified breakdown of Pixy’s technique.

(more…)