Heal Your Church WebSite



« How to avoid high maintenance church website design | Fundy-mental 5: Faith Baptist Church, Dayton, OH »

3 column tableless layouts not so hard with the YUI CSS Grids Builder

Multiple column, table-less layouts using CSS isn’t so hard the CSS Grids Builder tool provided as part of the Yahoo! User Interface (YUI) library. Just enter the number of columns, the widths and positions, and presto - a very small XHTML footprint driven by some rather clever formatting wrapped-up into a nicely compressed cascading style sheets is your for the taking … free!

Screen snippet of the YUI CSS Grid Builder screenEven though I encourage church webmaster to leverage existing blogging system, content management tools, and such to create and maintain their church websites - from time to time, some of us need to create a page from scratch. And in the past, when it came to creating stuff like 3 column tableless layouts, well let’s just say that not everyone’s browser worked and played well with even the most careful design.

And while the blame rests clearly on broken browsers, the responsibility invariably lands on the shoulders of the web developer. For example, in the past I’d use the most excellent online ‘CSS Layout Generator‘ tool. However one need only look at the generated code to see the numbers of hacks, quirks and work-arounds required to see why not ever user experience was the same.

However yesterday, quite by accident - or perhaps should I say by ‘gAccident,‘ yesterday I stumbled upon Jeremy Zawodny’s review of the YUI CSS Grids Builder; and this free, online tool’s uniquely different, but effective approach to table-less mutli-column layouts.

As best I can tell from my experiments and the generated CSS, it appears to that the YUI approach is one in which all browser differences are nuked, or should I say ‘Reset‘ using CSS to remove and neutralize the inconsistent default styling of HTML elements — creating a level playing field across various brands of browsers.

In other words, no more having to “clear floats” through any variety of methods, no more ‘bodges’ to work around annoying issues such as dealing with the max-width in Internet Explorer 6, or imposing minimum widths with CSS in FireFox, max-width in Internet Explorer and so on. Instead, by leveraging the YUI CSS Framework one can dispense with many CSS tricks you may, or may not know.

Instead, one needs only to enjoy the YUI Grids CSS offering of four preset page widths, six preset templates, and the ability to stack and nest subdivided regions of two, three, or four columns - the 4kb file provides over 1000 page layout combinations; including:

I know this to be true because I gave a slightly modified version of the YUI generated CSS on multiple browsers both at my work — and using the cool, free, online multi-browser test tool offered over at Browsershots.com!

The only questions I have left to ask now are:

  1. How permanent is their BSD licensing? Meaning, will my church and/or charity get in trouble using this?
  2. As I examine the YUI, I have to ask, what’s in it for Yahoo! to provide all this free of charge? Or will I have to eventually run ads?
  3. How poorly will the upcoming release of IE8 mangle this approach?

Other than these three issues, I for one can’t see any reason not making the Yahoo! User Interface (YUI) library a pivitol piece of anyone’s “CSS Survival Kit.”

bookmark to:

Posted by MeanDean on March 27, 2008.

Categories: How-To, Resource Filled

0 Responses

Leave a Reply

« How to avoid high maintenance church website design | Fundy-mental 5: Faith Baptist Church, Dayton, OH »




Recent Posts


Pages



About Heal Your Church WebSite

CONTACT: Dean Peters HealYourChurchWebsite.org inquiry -at- healyourchurchwebsite -dot- com http://HealYourChurchWebsite.org Webmaster, Heal Your Church Website Rockville, MD, May 11, 2002 (update Apex, NC, 23-Apr-2007) - Tired and frustrated with church and para-church websites that look like visual vestiges from the dark ages, Dean Peters, contributing author to “Son of Web Pages That Suck”, posts his own virtual 95 Theses to the [...]more →