{"id":519,"date":"2008-11-24T22:33:28","date_gmt":"2008-11-25T03:33:28","guid":{"rendered":"http:\/\/www.kayak2u.com\/blog\/?p=519"},"modified":"2011-10-21T13:25:32","modified_gmt":"2011-10-21T17:25:32","slug":"css-holy-grail-utility","status":"publish","type":"post","link":"http:\/\/www.kayak2u.com\/?p=519","title":{"rendered":"CSS Holy Grail Utility"},"content":{"rendered":"<p>It&#39;s the layout, man. &nbsp;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 <a href=\"http:\/\/www.kayak2u.com\/sundry\/css3col.php\" target=\"_blank\">Three Column CSS Parameter Generator<\/a> utility out of rehearsal into Show Time. &nbsp;Which I&#39;ve done, beyond all necessity. &nbsp;(And NOW <a href=\"http:\/\/www.kayak2u.com\/sundry\/css3col_ppec.php\" target=\"_blank\">with more parameters<\/a>.)<\/p>\n<p>There&#39;s no need to click the link above unless you&#39;re interested in CSS-driven three column layouts, and the history of such things as they&#39;ve played out over several years, from <a href=\"http:\/\/bluerobot.com\/web\/layouts\/layout3.html\" target=\"_blank\">BlueRobot<\/a>, to <a href=\"http:\/\/glish.com\/css\/7.asp\" target=\"_blank\">Glish<\/a>, to <a href=\"http:\/\/positioniseverything.net\/articles\/onetruelayout\/\" target=\"_blank\">Position is Everything<\/a>, to <a href=\"http:\/\/www.alistapart.com\/articles\/holygrail\" target=\"_blank\">A List Apart<\/a>, and <a href=\"http:\/\/www.gerd-riesselmann.net\/development\/the-holy-grail-css-layout-fix-for-ie7\" target=\"_blank\">beyond<\/a>. &nbsp;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 href=\"http:\/\/www.alistapart.com\/d\/holygrail\/example_4.html\" target=\"_blank\">A List Apart&#39;s wrapper-free Holy Grail<\/a>.<\/p>\n<p>BUT! &nbsp;Though the HTML and CSS that go into the Holy Grail Three Column layout are uncluttered and simple (why I like &#39;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. &nbsp;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. &nbsp;More than a couple iterations of that can get real boring.<\/p>\n<p>Therefore, I created a utility to do most of the grunt work for me, generating the CSS with the values I give it. &nbsp;Written in PHP, it&#39;s at the first link above. &nbsp;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.<\/p>\n<p>Yes, it&#39;s hard wired to the &quot;wrapper-free&quot; version of the layout, but can be modified rather simply for other versions. &nbsp;I like the &quot;wrapper-free&quot; version because it works without hacks in IE7 (Oops, or so I thought. &nbsp;Now fixed, it looks from here.) &nbsp;Yes, it still may not work in all browsers or select versions of different browsers, but that&#39;s the way it goes. &nbsp;When I can <i>see<\/i> it broken, I&#39;ll try to fix it.<\/p>\n<p>Thank you. &nbsp;Yer Welcome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#39;s the layout, man. &nbsp;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[582,583,581,578,580,584,579,585],"class_list":["post-519","post","type-post","status-publish","format-standard","hentry","category-programming","tag-a-list-apart","tag-alistapart","tag-bluerobot","tag-css","tag-holy-grail","tag-html","tag-three-column-layout","tag-utility"],"_links":{"self":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts\/519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=519"}],"version-history":[{"count":0,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts\/519\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}