psyche
08-12-2006, 11:58 AM
I'm trying to create a layout which has left and right fixed-width columns with a fluid middle column, and fluid mini columns inside the middle column. I've got various ways of creating the basic three column structure, but come unstuck when I try to put the fluid mini columns inside the middle column. My plan was to do this by giving them a percentage width and floating them. All is well in both IE and Mozilla until I try to float them - with no float they present with the width I expect, ie as a percentage of the width available in the middle column. As soon as I stick in a float, in IE their width suddenly presents as a percentage of the total page width. Why does it do this, and how do I stop it?
I've put two examples together with just the bare bones of code: Test A (http://www.psychedesign.co.uk/temp/testa.html) creates the basic three column structure by positioning the side columns absolutely and giving the middle column a margin on both sides to clear them. Test B (http://www.psychedesign.co.uk/temp/testb.html) floats the left and right boxes, but again uses margins to keep the middle in the middle. Both have the problem.
I tried solving the problem by using display:inline instead of float to get the green boxes to sit next to each other. That kinda works in IE, although they display a little smaller than they should. But in Mozilla the boxes reduce to the width of the text in the paragraph (which I guess is what ought to happen, really).
An odd secondary bug I noticed when putting these examples together: in IE some of the paragraphs in the middle column don't display when the page is loaded. Is this the peekaboo bug I've heard so much about?
Any advice you can give me would be very much appreciated - I'm relatively new to CSS and trying to learn quickly!
I've put two examples together with just the bare bones of code: Test A (http://www.psychedesign.co.uk/temp/testa.html) creates the basic three column structure by positioning the side columns absolutely and giving the middle column a margin on both sides to clear them. Test B (http://www.psychedesign.co.uk/temp/testb.html) floats the left and right boxes, but again uses margins to keep the middle in the middle. Both have the problem.
I tried solving the problem by using display:inline instead of float to get the green boxes to sit next to each other. That kinda works in IE, although they display a little smaller than they should. But in Mozilla the boxes reduce to the width of the text in the paragraph (which I guess is what ought to happen, really).
An odd secondary bug I noticed when putting these examples together: in IE some of the paragraphs in the middle column don't display when the page is loaded. Is this the peekaboo bug I've heard so much about?
Any advice you can give me would be very much appreciated - I'm relatively new to CSS and trying to learn quickly!