I have a div that I want to position at the center of a page(both vertically and horizontally).
For centring it horizontally I used the center tags around the div and for vertically centring it is tried a couple of things but none of them actually working.
Check out the code:
margin-top: calc(50% - 25px);
If available, using flex is the easiest. Apply these styles to the container in which you want to center your
display: flex; align-items: center; justify-content: center;