Hopefully soon the modern browsers will support CSS tables. God knows we need a grid UI system in web design.
Stefan
]]>is there a way to accomplish this?
]]>“margin:# auto;” (where # is the numerical size of the margin) only works when there is a value for the width of the layer.
If you believe that a significant number of people are still using IE6, you need to add a few other things for centering to work. IE6 ignores auto margins. On the body: text-align:center; On the container: text-align:left; For some strange reason, an inline property works on a block in IE6. The second text-align is needed to align the text to the left in all other browsers.
]]>Really good tutorial for beginers. It would have saved me tons of hours trying to figure out this float stuff.
I know lots of people who are afraid to trasition from tables to CSS based layouts because they think this is out of this world and really complicated. Actually it’s really simple (just gets complicated when you finish your beautiful layout and go test it on IE6 ,7 and 8).
But you really don’t need the container div. The body tag is already a container, just give it the width value. The less divs the better.
You should also mention how to center the layout with margin:0 auto;
]]>