3-column-preview-card-component using HTML and CSS
Design comparison
Community feedback
- @Kamlesh0007Posted over 1 year ago
Congratulations on completing the challenge!🎉. That's a great achievement, and I'm sure you put a lot of effort into it. I really liked the way you approached the challenge and the code you wrote. You demonstrated a good understanding of the concepts and applied them effectively to solve the problem.I have a few suggestions to improve your code further. Add below code to make the background color of button as per design
.col button { border: 2px solid var(--very-light-gray); background-color: hsl(0deg, 0%, 100%); // add this value to make background as per design padding: 0.75rem 1.5rem; border-radius: 2rem; cursor: pointer; }
and When it comes to centering a div or any element on a webpage, using margins may not always be the best approach. so use flexbox or grid layout for centering the div
Here's an example code snippet:
body { background-color: var(--very-light-gray); min-height: 100vh; display: grid; place-items: center; } now remove below lines of code .container { margin: 0 auto; margin-top: 4rem; }
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