How To Vertically Align Blocks Using CSS
erics, 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).
Leave Your Comment
All fields marked with "*" are required.