How to vertically center an element using CSS?
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 :)