How To Vertically Align Blocks Using CSS

Published Date Author: , Posted June 4th, 2020 at 11:18:32am

Outer Block – set the line-height: {some value}
Inner Block – set the line-height: normal, along with display: inline-block; vertical-align: middle;

Also works if you set OUTER height instead of the line-height (or together with the same value as the height).

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.