Vertically and Horizontally Center Image inside a Div, if you don't know Image's Size?
Posted
by viatropos
on Stack Overflow
See other posts from Stack Overflow
or by viatropos
Published on 2010-03-13T02:05:14Z
Indexed on
2010/03/13
2:07 UTC
Read the original article
Hit count: 341
If I have a fixed sized container div, and an unknown sized image, how do I horizontally and vertically center it?
- using pure css
- using JQuery if css can't do it
This answer makes sense for fixed width images, but not variable ones.
Thanks for the help!
© Stack Overflow or respective owner