KAYAK2U

November 24, 2008

CSS Holy Grail Utility

It's the layout, man.  After seeing, a couple days ago, how Internet Explorer 7 behaved with the site layout (the left column was somewhere out in space, man), I had to make the rounds, read the comments, rejigger lines of code here, there, and the other place, and finally drag my little Three Column CSS Parameter Generator utility out of rehearsal into Show Time.  Which I've done, beyond all necessity.  (And NOW with more parameters.)

There's no need to click the link above unless you're interested in CSS-driven three column layouts, and the history of such things as they've played out over several years, from BlueRobot, to Glish, to Position is Everything, to A List Apart, and beyond.  Layouts here (pre-kayak2u included) have followed the evolution of the technology as highlighted at those links, with the present layout an incarnation of A List Apart's wrapper-free Holy Grail.

BUT!  Though the HTML and CSS that go into the Holy Grail Three Column layout are uncluttered and simple (why I like 'em), the calculating of the values of the margins and paddings that go into the style sheet is tedious, never mind the inserting of those values into the proper place in the CSS file.  If you decide to change the width or padding of one column even by one pixel, everything has to be recalculated and the style sheet repopulated with the new figures.  More than a couple iterations of that can get real boring.

Therefore, I created a utility to do most of the grunt work for me, generating the CSS with the values I give it.  Written in PHP, it's at the first link above.  It can be run as is, or at the bottom of the page is a link to a .zip of the PHP source, meaning you can download it and play with it at your leisure.

Yes, it's hard wired to the "wrapper-free" version of the layout, but can be modified rather simply for other versions.  I like the "wrapper-free" version because it works without hacks in IE7 (Oops, or so I thought.  Now fixed, it looks from here.)  Yes, it still may not work in all browsers or select versions of different browsers, but that's the way it goes.  When I can see it broken, I'll try to fix it.

Thank you.  Yer Welcome.

MikeSoja - November 24, 2008 -- 10:33 pm    Filed in: Programming  
« Hippocratic curse
“Gently down the stream … “ »
As Happy As A Clam

Kayak2U.com

msoja RSS 2.0

Other's Pages









Search

Archive

November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  


  • Books4Sale



    Soja's GoodReads Books4Sale Cheap

  • Category Cloud


  • Tag Cloud