@saibharadwaj4919Submitted over 1 year ago
I am facing difficulty in placing the element's center and even display property. Any tips and solutions are most welcome.
I am facing difficulty in placing the element's center and even display property. Any tips and solutions are most welcome.
Good job finishing the challenge! One thing that I learned in CSS that is helping me a lot in these easier challenges is using flexbox and reseting the standard CSS. Usually I always start my stylesheet with this when I only have one item that I want in the center of the website:
*{ margin: 0; padding: 0; box-sizing: border-box; }
body{ width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; }