Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

css — align text to an image vertically

Have you ever wanted to align the text next to an image vertically?

It can be done using vertical-align prop­erty as shown below. Here, we show how to align the text to top, mid­dle, and bot­tom of the image.

See the Pen vertical-align by Kavit Shah (@kavitshah8) on Code­Pen.


You may also like...