I have this structure (simplified):
<div id="outer" style="display: table-cell">
<div id ="someOtherDiv">.......</div>
<div id="inner" style="text-align: center; vertical-align: middle">
<img src="path" />
</div>
</div>
I need IMG to be centered both vertically and horizontally.
Image is centered only horizontally but vertically in screen.
What else should I add to accomplish this?
Of course, if I set BODY to be 100% height, and then inner div to be also 100% height it works, but the fact is that I cannot actually add 100% height to BODY tag, so I need to do this only changing some style to INNER div.
I thought if OUTER div is table cell, ideally, vertical align style should work, but it doesn't. In fact, when using Firebug, I can see that OUTER div expands to all screen and INNER div only ocuppies the IMG space.
Any suggestion?