Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • Muhammad 90

    @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:

    1. display:flex into
    2. set the flex-direction:column;
    3. 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.

    0