Skip to content

Vertical & Horizontal Centering w/ 3 lines of CSS | breakthrough design

November 18, 2011

Vertical & Horizontal Centering w/ 3 lines of CSSThis method has become our ‘gold standard’ for centering your sites, images, or anything directly in the center of the page vertically and horizontally.  It’s easy to use, unobtrusive to your other page elements, requires only 3 lines of CSS and no javascript.  It’s almost like a CSS plugin of sorts.   The only downside is that 3 div elements are required, however, compared to all other solutions we’ve tested, this is minimal overhead, and worth the effort.    It’s built on Jakpsatweb’s method for Vertical Centering in CSS. Compatibility:

via Vertical & Horizontal Centering w/ 3 lines of CSS | breakthrough design.

Advertisements

From → CSS

Leave a Comment

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: