@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:
- display:flex into
- set the flex-direction:column;
- then use the align-items:center to properly center your container on the page.
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.