Hassia Issah• 50,670
@Hassiai
Posted
There is no need to style .center, to center .grid on the page using flexbox or grid:
- USING FLEXBOX: add min-height:100vh; display: flex; align-items: center: justify-content: center; to the body
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
- USING GRID: add min-height:100vh; display: grid place-items: center to the body
body{
min-height: 100vh;
display: grid;
place-items: center;
}
For a responsive content, add a max-width of 1440px to .grid or change the width value to 80vw.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
0