@code-AllahtosinSubmitted over 2 years ago
I was wondering if there's a better way to implement centring the page vertically.
I was wondering if there's a better way to implement centring the page vertically.
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.