Categories
CSS HTML

Vertically align text next to an image with CSS

If we have image follwed with text and need to be aligned verically, we can do this by simply setting “vertical-align:middle;” to image or we can use css property flexbox for this type of layout. Most of us will struggle with the middle aligment of images with text.

Vertically align text next to an image with CSS