BFE.dev
buy us
a coffee
Codingproblems
Reactproblems
JavaScriptquizzes
Reactquizzes
TypeScriptpuzzles
CSSproblems
Interviewquestions
SystemDesign
Discussanything
buy us
a coffee

121. How to center an element vertically?

CSS
Share

There are a lot of ways of achieving this, like negative margin, position, transform, line-height, flex-box .etc.

Do think difference situations where each approach is suitable.

prevnext

relax!