Hi everyone:
Ok, let me begin with a link to the current incarnation of this layout:
http://www.cooperheatingandcooling.com/index2.php
The goal of this layout is to have the following:
- Semi-fluid width from about 700px to 1200px. We've currently achieved this using the "PIE Jello Mold" technique.
- PNG shadow transparency and rounded edges around the border of the white content area. I want to use the IE alpha hack for transparency in IE 6> so all background positioning must be top left.
- Fluid height based on content.
So far, the following attempts have been made:
1) Percentage based layout using 3 columns for 'left shadow', 'content', and 'right shadow' (all relatively positioned). Because of the percentage based widths and browser rounding errors this would occasionally produce a gap between the 'content' column and the 'right shadow' column. It was an unacceptable error so I scrapped this approach.
2) My next attempt used the same 3 percentage width columns in a left floated arrangement. This cured the occasional rounding error gap. However, because the columns were floated the left and right 'shadow' columns would not expand in height to match the center 'content' column. At least not without setting an explicit height (defeats goal #3).
To get this layout to work I implemented the bottom padding and negative bottom margins (ala the PIE One True Layout method) and hid the overflow to achieve equal height columns.
The problem with this approach rears its ugly head when we needed to use anchors within page text (a documented pitfall of the OTL approach) as there is inconsistent handling of the overflow:hidden property among IE, Safari, and FF.
3) The current layout (as it appears in the linked page now) is using JavaScript to detect the 'content' column height and resize the 'shadow' columns appropriately.
However, this is unacceptable as there is a fairly long delay involved when resizing the browser window on a slower machine (not to mention what happen if JS is disabled) that just looks bad.
So, that's where it stands. Anyone out there have a fresh approach on how to tackle this layout? Or is there something obvious that I've missed?
This project is on a deadline, so if you think you have a solution please email me or post to the list. If you can explain the method and can get a minimal test case working I am more than happy to compensate the person with a working solution.
Thanks,
Nick