Absolute Centering in CSS

Sweet! The fact that horizontal (margin: 0 auto) works and vertical doesn’t is one of those coding idiosyncrasies that feels like it should have been made to work ages ago, and frustrates me every time I put together a new site. I cobble together a solution every time, but it’s always site-specific and seems like it’s never the same way twice. But this week from Smashing, an easy css centering technique that works back to IE8:

Absolute Horizontal And Vertical Centering In CSS

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s