@Hassiai
Posted
Replace <div class="main-container"> with the main tag to fix the accessibility issue. click here for more on web-accessibility and semantic html
There is no need to style the img in this challenge. the body has a wrong background-color.
To center .main-container on the page using flexbox or grid, 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;
}
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
Give .main-container a fixed max-width value for a responsive content. max-width:400px which is 25rem/em
and give .sedan, .luxury, .suv the same padding value for all the sides. In the media query increase the max-width of .container max-width: 600px
.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful