@Hassiai
Posted
Give the img a max-width of 100% for a responsive image instead of a width and height values.
There is no need to give .main a min-height value.
To center the mail on the page using flexbox or grid instead of margin, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.
USING FLEXBOX:
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
USING GRID:
body{
min-height: 100vh;
display: grid;
place-items: center;
}
Give .info a margin value for all the sides, text-align: center and a font-size of 15px which is 0.9375rem, this will be the font-size of both p and h1. Give p a margin-top or h1 a margin-bottom value for the space between the text.
There is no need to style .hero and give the img a margin-bottom value.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful
@3AGLE-git
Posted
Hello Hassiai. Thanks for the feedback. I have made the corrections you suggested. Please check and tell me what you think now.