Hassia Issah• 50,650
@Hassiai
Posted
To center a content on a 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;
}
Use the colors that were given in the styleguide.md found in the zip folder you downloaded.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
0
Mian Maaz Ullah Khan• 410
@mmaazkhanhere
Posted
@Hassiai Thank you for valuable feedback!
0