Four card feature section using HTML and CSS.
Design comparison
Solution retrospective
Built a four card feature.. Please feedback to help me improve Thanks!!
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Chiozoadiro, congratulations for your new solution!
Here's some tips to improve your code and design:
Your html is working but you can improve it using meaningful tags and replace the divs, for example the main div that takes all the content can be wrapped with
<main>
or section, about the cards you can replace the<div>
that wraps each card with<article>
.Here's a complete guide for HTML semantic TAGS: https://www.w3schools.com/TAgs/default.asp
The box-shadow is a bit too evident, this is due the
opacity
andblur
. The secret to create a perfect and smooth shadow is to have low values foropacity
and increaseblur
try this value instead:box-shadow: 0 0.9375rem 1.875rem -0.6875rem rgb(131 166 210 / 50%);
If you’re not familiar to box-shadow you can use this site to create the shadow design and then just drop the code into the CSS: https://html-css-js.com/css/generator/box-shadow/✌️ I hope this helps you and 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