html - Image container with fixed size -


i have following image container :

<div class="images">     <img src="<%=imageurl %>" /> </div> 

and css .images :

.images{ display:inline-block; width:100px; height:133px; overflow:hidden; } 

my images of different dimensions thats why using above div capsule make them same sized. in page, images coming :

enter image description here

their tops not aligned. how can rectify ?

add vertical-align:top

.images{     display:inline-block;     width:100px;     height:133px;     overflow:hidden;     vertical-align:top } 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -