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. .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Spam Blocked

Flickr Photos

27/365 : Escape

Large Format Study N. 14

let the wind blows

More Photos

Blogroll

Recent Posts

Recent Comments

Satheeshmuthu on Sachin silences the critics [ …
Satheeshmuthu on Sachin silences the critics [ …
izdelava spletne str… on Convert em,px,pt and % in…
CSS References, Tuto… on Convert em,px,pt and % in…
shirley on Convert em,px,pt and % in…

Pages

Top Clicks

Top Posts

Blog Stats