So I’m struggling to vertically center a div element within another div using CSS.
I’ve tried using various CSS properties like flexbox and vertical-align, which by the way have worked for me before but none of it is working as expected. The element either stays at the top or bottom of the parent container.
PLEASE HELP and thank u in advance 🙂
New contributor
Michael Odenore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.