" > " > " >
  • support@answerspoint.in

How to vertically align an image inside div

25
Advertisement

How to properly vertical-align this image in the .frame element:

<div class="frame" style="height: 25px;">
    <img src="http://jsfiddle.net/img/logo.png" />
</div>

.frame's height is fixed and image's height is unknown. I can add new elements in .frame if that's the only solution. I'm trying to do this on IE≥7, Webkit, Gecko.

0Answer


Your Answer

    Facebook Share        
       
  • publish 10 years ago
  • viewed 25 times
  • active 10 years ago

Best Rated Questions