Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vidhyaa

macrumors newbie
Original poster
Jun 21, 2016
1
0
I need to align picture so that one may be higher or lower than the other. How can I achieve it?
 
I think that you want to align it vertically? You can try it in that way:

<div id="block">
<img src="firstimg.jpg">
<img src="secondimg.jpg">
</div>

and in CSS:
#block {
line-height: 100px;
}

#block img {
vertical-align: middle;
}

Hope it's what you needed :)
 
  • Like
Reactions: Flood123
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.