CSS Centering

July 17, 2007 at 9:13 am Leave a comment

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>

Advertisements

Entry filed under: css.

Convert em,px,pt and % in css CSS box model hack

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Flickr Photos

Bruschetta (quasi) molecolare..

Precious Peyto

morning phase

More Photos

Blog Stats

  • 708,778 hits

%d bloggers like this: