Posts Tagged w3c standards
Equal Height Columns in Website Layouts
Posted by Chris in Tips & Tutorials on May 29th, 2009
There have been a number of times when I have had the issue of columns not lining up at the bottom of the website (or section of page). I always like using CSS to create these columns; it’s better for the environment. The issue that I could never work out was how to make them line up and not overlap div’s further on in the code (like the footer).
Well, I thought it was about time I investigated this properly and find a solution… so I Googled it and came up with the official solution from good ol’ W3C, and it is called the Pseudo-algorithm:
if ((column-width = auto) and (column-count = auto)) or
((available-width = unknown) and (column-count = auto)) then
exit; /* no columns */
fiif (available-width = unknown) and (column-count != auto) and (column-width != auto) then
N := column-count;
W := column-width;
exit;
fiif (available-width = unknown) then
available-width := shrink-to-fit;
fiif (column-width = auto) then
if ((column-count – 1) * column-gap < available-width) then
N := column-count;
W := (available-width – ((N – 1) * column-gap))/N;
elsif (column-gap >= available-width) then
N := 1;
W := available-width;
else
N := floor(available-width/column-gap);…
else
N := floor((available-width + column-gap) / (column-width + column-gap));
W := ((available-width + column-gap) / N) – column-gap;
fi
Ah, ja right! I am sure that it is all correct, but… so I continued the search… and came across the best explanation and even sample code @ matthewjamestaylor.com.

GREAT STUFF! A solution is explained nice and clearly and the illustrations assist in the enlightenment that you may experience.
I will put to use and report back on how it worked… Enjoy and let me know how you get along with it or if you have another solution.
NMT Electrodes’ Website
NMT Electrodes manufactures Mixed Metal Oxide (MMO) and Platinised Titanium Anodes for a wide range of electrochemical applications.
NMT Electrodes was established in 1993 in Durban, South Africa and, more recently NMT Electrodes (Australia) Pty Ltd was established in Perth, Australia.

This is a brochure website that lists all the products that they manufacture and also provides details on specifications on each. I developed this site from scratch, including the logo.
The XHTML is also W3C standards compliant.
Site: NMT Electrodes
Liezel’s Cause Website
Liezel’s Cause is non-profit foundation that has been initiated by Liezel Huber to help the victims of Hurricane Katrina and Rita. I helped Liezel out with this site to assist her cause.

The site did reach a PR6 in the first six weeks that it was live. The site also won a Platinum Awards from the Australian Web Designers Network. The award is judged on the following categories: Graphics, Artwork, Layout, Navigability, Functionality and Originality. Gold Website Awards… looks like they are a little behind in their judging…
Site: Liezel’s Cause
Wineography’s Website
Wineography is one of my projects that is continually evolving and is continually growing. For the wine lover, this is a great place to record wine reviews and tasting notes. Not only will you be able to share you wine reviews but learn what others thought of other bottles of wine.

Wine forums help create a larger community and Wineography’s Wine Forums gives you that opportunities to discuss all you wanted to know about that Merlot that they didn’t like on Sideways…
It is for beginners to connoisseurs; go ahead ask and learn.
It has expanded into a winery directory too. Each entry has its own mod rewritten page and is fully search engine opimised. All pages are created to be W3C compliant too!
Cousins Steel Website
Cousins Steel cc are structural steel specialist and are situated in Pietermaritzburg, South Africa. The business is owned by Lynton and Craig Cousins who founded it in 1988. The website that we developed for Cousins Steel is a brochure site that basically delivers an overview of what their primary activities are and list some of their clients.

Once more all the pages and CSS file validate against the W3C standards!
Site: Cousins Steel


