Muhammad• 90
@code-Allahtosin
Submitted
I was wondering if there's a better way to implement centring the page vertically.
@iammiracle01
@code-Allahtosin
Submitted
I was wondering if there's a better way to implement centring the page vertically.
@iammiracle01
Posted
Hi Muhammad, nice solution using CSS flex. By the way a better way for centering the page vertically is by including the following into your container styles:
You can also add margin: 5rem auto .
Lastly, I'd suggest you remove the width and text-align property on your body tag.
Hope this helps, happy coding.