@Hassiai
Posted
Replace <div class="container"> with the main tag to make the content/page accessible. click here for more on web-accessibility and semantic html
Give the body a background-color of hsla(0, 0%, 100%, 0.75).
To center .container on the page using flexbox or grid instead of margin,
- 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;
}
There is no need to give sedan-container, .suv-container, .lux-container a width and height values and to give .container a max-height value in the media query.
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 and here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful