Design comparison
Solution retrospective
Does anyone have idea why on mobile version my image is not displaying properly from the top?
Community feedback
- @HassiaiPosted almost 2 years ago
Replace <section class="card"> with the main tag to fix the accessibility issue. There is no for <br> in <section class="highlights"> , replace all the <h2> in <section class="highlights"> with p and give it a class for the styling, wrap each set in a div. sample
<section class="highlights"> <div class= " col"><p class= "number"></p><p class= "text"></p></div> <div class= " col"><p class= "number"></p><p class= "text"></p></div> <div class= " col"><p class= "number"></p><p class= "text"></p></div> </section>
Use rem or em as unit for the padding, margin, width and preferably rem for the font-size for more on CSS units Click here
To center .card on the page using flexbox, replace the height in the body with min-height: 100vh.
Give the .card a fixed width value instead of a min-width value and a percentage width value. this applies to the media query as well.
For the color of the image, give .rightContainer a background-color of soft violet. and add mix-blend-mode: multiply and opacity: 0.8 to the img
.rightContainer{ 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@suhaib52Posted almost 2 years ago@Hassiai Thank you so much for your suggestions. That makes sense to me.
0 - @nelsonleonePosted almost 2 years ago
HELLO......congrats on completing this challenge well done 🎉 🎉
I noticed some things with your solution here's some tips , hope this comment was helpful and made meaning to you
Based on your question , it's because you set a height on your
<BODY>
Hope this was helpful and you understood, have fun 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