Help me with this CSS box model problem!
April 15, 2004 7:49 PM
Subscribe
CSS issue. I have a problem with a
site that I built. I can either make the centre box containing the main body of the pages line up with the other boxes on the page, or I can make the centre box flexible to allow for different resolutions etc, but not both. [more inside]
A copy of the CSS is
here. I got the original layout from a site offering free templates that I found via MeFi but can no longer locate and which I have since changed a great deal. Somewhere along the line, I have stuffed something up and cannot get the layout to work properly. Originally, the layout used margins on the centre box to space it from the other boxes and it worked at any resolution, but the boxes only aligned with each other properly on IE6. After trying literally dozens of other solutions I found via Google, I ended up setting the width of the centre box at 60% to make it more or less work, but it is not really right and is awful at lower resolutions. Also, I have used pop-up windows to provide information in separate windows for a few places and, as these windows are narrower, the 60% setting does not work at all. The "solution" I came up with also generates a horizontal scroll bar in Mozilla-based browsers, but not in IE. Any suggestions warmly welcomed, either in how to fix it or what is actually causing the problem so I can find a solution myself.
Disclaimer: While I will not profit in any way directly from solving this problem, it is a work project, so feel free to ignore me if you have a problem with this.
posted by dg to computers & internet (6 comments total)
[div style='position:absolute;top:0px;left:0px;width:250px;']
left column
[/div]
[div style='position:absolute;top:0px;left:0px;width:100%']
[div style='margin-left:250px;margin-right:250px;']
centre column
[/div]
[/div]
[div style='position:absolute;top:0px;right:0px;width:250px;']
right column
[/div]
posted by holloway at 8:48 PM on April 15, 2004