The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Alignment in IE Re: Alignment in IE


This is what i use very often:

And with the css to align the container in the middle:

#container {
width: 970px;
margin: 0px auto;

If your div, which you want to center, has no width, it’s almost impossible to align it in the middle of the screen. This is a good way to center your div. For the div’s (header, section, footer) inside the wrapper, just use float.

Hope this is helpfull to you.