I'm trying to create a grid of boxes that sit side by side and flow onto the next row when there are more than 3. I need the boxes to sit flush to either side of the container so the left edge of the left box is touching the left edge of the container, and the right edge of the right box touching the right edge of the container. I've tried this by creating two boxes that are floated left and 1 box that is floated right. It works in firefox and chrome but in IE6 it is a complete mess. Does anyone have a basic example of what I'm trying to achieve that works accross browsers?
How did you do the floats and in what order? Did you use display:inline; for each float? Try adding the display property and check IE6 again. If that doesn't work it would be easier if you posted at least some of the code involved.
I believe what you are trying to accomplish can be achieved through an unordered list. By setting a width on the unordered list and floating each list item you can control how many list items are displayed per row. See my example below, works in IE, FF and Chrome.
The boxes i'm refering to are the ones towards the bottom of the page that list all pages within each catergory of the site. In firefox and safari these boxes sit nicely and line up with the content above but in IE6 it's all over the place. What would I need to fix or change so that it works the same way in IE6.
It might also be helpful to explain that the margins of a floated element will double in IE6 unless you use the display:inline property. This is one of the most frequent problems I've encountered here over the years. I should probably have explained this a week ago when I first replied to this thread.