Responsive Four Card feature Section built with Mobile-First Workflow
Design comparison
Solution retrospective
Added some "cool" hover effect on the four cards for only the desktop view. check out my design and also check my code and help me improve it with HTML and CSS best practice. Thank you.ππ
Community feedback
- @correlucasPosted over 2 years ago
πΎHello Finney, congratulations for your new solution!
I just saw your solution and this is really amazing and fully responsive. The only thing I think you could change is the aligment and the box-shadow.
Here's my tips:
To have your content aligned vertically cented you need to use these flex properties:
display: flex; / align-items: center; / justify-content: center;
main { display: flex; max-width: 375px; padding: 4rem 2.5rem; margin: 0 auto; min-height: 100vh; align-items: center; justify-content: center; }
The shadow is too transparent, in this case you can give it more opacity to make it a bit more visible, use this value instead
box-shadow: rgb(0 13 28 / 5%) 0px 12px 15px;
π I hope this helps you and happy coding!
Marked as helpful1@Finney06Posted over 2 years ago@correlucas Thanks for the feedback I'll work on that.π
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