Design comparison
Solution retrospective
Please I will appreciate any advice about how to make the site more responsive and how to move the stats to the preferred position
Community feedback
- @HassiaiPosted almost 2 years ago
wrap <div class="attribution"> in a footer tag to fix the accessibility issues.
<section class="stats"> should be within <section class="header-info container"> sample html"<main> <section class="set-img"><picture><img></picture></section> <section class="info"> <h1></h1><p></p> <section class = "stats"> <div class= "col"><p class= "number"></p><p></p></div> <div class= "col"><p class= "number"></p><p></p></div> <div class= "col"><p class= "number"></p><p></p></div> </section> </section> </main>
To center the main 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 the main on the page using flexbox: body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
To center the main on the page using grid: body{ min-height: 100vh; display: grid; place-items: center; }
For a responsive content in the mobile design give the main a max-width value.
max-width: 25rem which is 400px.
For the color of the image, give .img a background-color of soft violet and give the img a width of 100 of 100%, height of 100%, object-fit: cover, mix-blend-mode of multiply and opacity of 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 helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord