centering image vertically in all resolutions

Posted by gnomixa on Stack Overflow See other posts from Stack Overflow or by gnomixa
Published on 2010-05-05T23:42:32Z Indexed on 2010/05/05 23:48 UTC
Read the original article Hit count: 117

Filed under:
|

I need to be able to center the image vertically for all the common resolutions. A lot of ppl here on SO have already asked this question before, and 90% of then give this tutorial http://www.jakpsatweb.cz/css/css-vertical-center-solution.html

as an answer. However, when viewed at my 1280 by 1024 res monitor in FF, it's not centered. And worse yet, it breaks horribly in IE7. So, it's definitely NOT the answer.

Am I chasing the impossible dream? The solution has to work for FF and IE 6/7

the solution can be anything that would work, though being a bit of a purist, I would prefer a div over table:)

© Stack Overflow or respective owner

Related posts about css

Related posts about vertical-alignment