@Hassiai
Posted
Replace <div class="card"> with the main tag to fix the accessibility issues. click here for more on web-accessibility and semantic html
to center .card on the page using flexbox or grid instead of position: absolute, 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
For a responsive content there is no need to give .card a height value and replace the width in .img and .card width max-width.
Hope am helpful.
Well done for completing this challenge. HAPPY CODING