[thelist] Centered Container DIV

ben morrison morrison.ben at gmail.com
Tue May 24 09:15:43 CDT 2005

#body {
    text-align: center;
#container {
    width: 660px;


text-align:center is used to fix IE, You need to add margins to your container:

#container {
margin:0 auto;

By giving left and right a margin of auto it will center itself on
screen. You may want to add
text-align:left; to your #container as well to reset the text alignment.


More information about the thelist mailing list