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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...