tags:

views:

70

answers:

1

Hi can someone help me horizontal and vertical align a img inside a figure

 <figure class="frontpagearticlefigure">
    <img class="frontpagearticleimg" src="image.png" alt="image" title="imgtitle" />
</figure> 

and my css

.frontpagearticlefigure
{
    display: block;
    height: 140px;
    width: 250px; 
}

Im working with html 5

+1  A: 

You can try using .frontpagearticlefigure img { display: inline-block; vertical-align: middle; } or use display: table-cell

nimbupani
@nimbupani thx alot
gulbaek