Cross-Browser Horizontal Div Centering

For a cross-browser, horizontal div centering you’ll need two divs:

.outter {
  text-align:center;
}

.inner {
  text-align:left;
  margin-left:auto;
  margin-right:auto;
}

Simple!

Advertisements

One Response to Cross-Browser Horizontal Div Centering

  1. well thanks so much for the plugin, it really helps me a lot. more power…

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

%d bloggers like this: