Vertical Centering in CSS

Need to center something between the top and bottom of a webpage, but you want to use clean CSS and not some garbage tables?

I am no web developer, nor am I a CSS / HTML guru.  I scour the web for what I need and I share what I find.

I found these:

http://www.infinitywebdesign.com/research/cssverticalcentereddiv.htm

http://waxpad.com/waxpadarticles/vcexample.html

http://d-graff.de/fricca/center.html

You tell me if these suck, or if they’re not compliant.  I’m looking for the holy grail - a compliant, well-behaved solution for vertical centering that also takes less than a 1MB style sheet.

Leave a Reply

You must be logged in to post a comment.