@Hassiai
Posted
Replace <div id="body"> with the main tag and <h2> with <h1> to fix the accessibility issue. click here for more on web-accessibility and semantic html
For a responsive content which won't require a media query for this challenge, replace the width in #content with max-width, and give the img a max-width of 100% instead of an inline styling with a fixed width and height value.
There is no need to give #content a height value and position: relative and its properties.
There is no need to style #body give the background-color you gave to #body to the body.
To center #content on the page, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.
To center #content on the page using flexbox:
body{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
To center #content on the page using grid:
body{
min-height: 100vh;
display: grid;
place-items: center;
}
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