Jump to content

Vertical-align texts in neighboring spans


Guest Vojta

Recommended Posts

Hello, can you advise please? I havo two spans wrapped in one div as follows:<div style="vertical-align:middle"> <span style="vertical-align:middle;height:20px"> Some text A <img src="checkbox_image.png"/> </span> <span style="vertical-align:middle;height:20px"> Some text B </span></div>My problem is that baseline of "Some text B" is higher then baseline of "Some text A". It is caused by the image. If I remove it baseline of both texts gets on the same level. Please, how can make baselines of both texts to be on the same level?Thanks a lot! Vojta

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...