Design comparison
Solution retrospective
Please suggest me good html css practices
Community feedback
- @correlucasPosted over 2 years ago
๐พHello Ranhossainemi, congratulations for your solution!
Your solution is really good, but you need to fix some issues related to its design.
For example, the background-color is inside the class
.cardFeature
but this should goes tobody
in order to display it full width.body { background-color: hsl(0,0%,98%); } .cardFeature { /* background-color: hsl(0,0%,98%); */ }
You can create the colored bar for each card using an
<span>
and giving itheight: 8px;
this way it doesn;t get affected by the card componentborder-radius
thats is flat not rounded.The box-shadow is a little bit strong, you need to give it less opacity, the correct value is
box-shadow: 0 0.9375rem 2.625rem -0.6875rem rgb(131 166 210 / 40%);
Hope it helps, and happy coding!
Marked as helpful1
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