Hassia Issah• 50,670
@Hassiai
Posted
To center the section on the page using flexbox, replace the height in the body with min-height: 100vh.
To center the section on the page using flexbox:
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
Give .image a max-width of 100% and the img a width and height of 100%.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
1