Quote:
Originally Posted by Nabodita
Well, I'm still getting the image centered horizontally but not vertically. That's what I want really.
|
PHP Code:
display: table-cell;
vertical-align: middle;
That should do it.
If you're looking to center a div or an image vertically on screen you should use:
PHP Code:
margin-left: auto;
margin-right: auto;
And not:
PHP Code:
text-align: center;
@JLius: Correct, same result with less code