@Hassiai
Posted
replace <div class="container"> with the main tag to fix the accessibility issues. click here for more on web-accessibility and semantic html
To center .container on the page using flexbox or grid instead of a 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;
}
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 . container a width of 80vw for a responsive content instead of a min-width..
for the color of the image, give .img a background color of soft violet instead of filter and give the img a height 0f 100%, object-fit: cover, mix-blend-mode: multiply and opacity: 0.8
.img{
background-color: hsl();
}
img{
width: 100%;
height: 100%;
object-fit: cover;
mix-blend-mode: multiply;
opacity: 0.8;
}
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful