Design comparison
SolutionDesign
Community feedback
- @refikmemmedovPosted 3 months ago
You were able to keep the code shorter by just using border-top. HTML
<div class="card border-blue"> <h2>Calculator</h2> <p>Uses data from past projects to provide better delivery estimates</p> <img src="images/icon-calculator.svg" alt=""> </div>
CSS
.card{ box-shadow: 0px 15px 17px 0px rgba(0,0,0,0.59); padding: 2rem; border-top: 4px solid; border-radius: 0.5rem; } .border-blue{ border-color: var(--clr-primary-blue); }
Like this
0
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