@Hassiai
Posted
To center the main on the page using grid, add min-height:100vh; display: grid place-items: center to the body.
To center the main on the page using grid:
body{
min-height: 100vh;
display: grid;
place-items: center;
}
there is no need to give .container and the img display: flex. there is no need to give the img and main margin values.
Add a p adding value of all the sides to the main and give the img a max-witdth of 100% instead of a width.
Give h1 and p the same font-size of 15px and the same margin-left, margin-right and margin-top values. Give p a margin bottom value.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING