vertical

A collection of 1 post

Vertically align image in div

css vertical align image

To align an image vertically in a div you need to add the following styles on the element surrounding the image: display: inline-block vertical-align: middle The following style should also be added to the image: vertical-align: middle Example pen: See the Pen

You've successfully subscribed to Base 64!
Could not sign up! Invalid sign up link.