Center an Image vertically and horizontally? css

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-03-19T15:21:50Z Indexed on 2010/03/19 15:31 UTC
Read the original article Hit count: 211

Filed under:
|
|
|
|

How do i vertically and horizontally center an image when i do not know the size of it? I asked this question and someone suggested using a table. This isnt the first time i heard a table can do it but i tried without luck.

Searching SO only got me results when i do know the size of the image. How do i do this with a table?

NOTE: Javascript/jquery is not preferred but if theres a solution with it i'll be open to it.

© Stack Overflow or respective owner

Related posts about html

Related posts about css