CSS Centering
July 17, 2007
body {
text-align:center; /* for IE */
margin:0 auto; /* for the rest */
}
div#outer {
text-align:left;
width:748px; /* or a percentage, or whatever */
margin:0 auto; /* for the rest */
}
<body>
<div id=”outer”> <!– wrapper class –>
</div>
</body>
Entry Filed under: css. .



Trackback this post | Subscribe to the comments via RSS Feed