Post Archive
› April 2, 2003
Another CSS three-col layout
Big John at Positioniseverything.net published three-column layout via CSS with all three columns having same height. Unfortunately, the left column is positioned absolutely (so nothing can be put bellow - like footer etc.). The CSS code contains lots of hacks. I think it can be much simplier. I've made my own solution without positioning, without hacks. It works at least in IE5/Win95, IE6/WinXP, Opera7/WinXP, IE5/Mac, Mozilla, Safari, and Camino.
However, this is just subsidiary thing... First of all, I think all the "CSS gurus" should present more creative examples of CSS posibilities, instead of permanent demonstrating "Look, mom, no tables!"
Anything can be done with CSS (IMHO). Why to waste time round and round by showing how to replace table-layouts, day by day? Hey gurus: be creative, show everything CSS can do, forget tables. Anyone who likes tables will be disgusted by dozens of complicated hacks, by non-stop persuading of table-layout replacements. Show them something else, something better. Show them things they've never seen before. Show them the power of CSS, things beeing impossible with tables. Let them make their own decision.
And, please, stop flooding the web by another two-, three-, and dozen-columns layouts.
Simon Willison Posted…
Personally I prefer positioning to using floats as floats force you to maintain a specific order to the actual markup on your page. Having your main content before the navigation stuff in your markup is preferable both for accessibility reasons and search engine optimisation. Also, two/three/etc column layouts may be dull but they account for the vast majority of web site designs - if we're going to convince hard core table users to switch to CSS we need to provide them with rock solid examples of how CSS can be used to achieve their current designs.