3 Column Preview Card Component with custom css properties
Design comparison
Solution retrospective
This was a relatively easy challenge for me. However, I noticed a few distortions in one or two of the card components while resizing the screen size using developer tools on chrome. Any ideas on how to fix that?
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hello Mishael, how are you? I truly loved your project's outcome, however I have some advice that I hope you'll find useful:
I noticed that you used a
button
in which case the best option would be ana
, because in my head when a person clicks on a button written Read more, he is not confirming a form, or something like, it will be redirected to another page, to read more about!to solve this problem do this:
<a href="/" class="btn">Learn More</a>
To make the project more like the example layout, we can do this:
body { background-color: #F2F2F2; }
The remainder is excellent.
I hope it's useful. 👍
Marked as helpful0 - @amalkarimPosted almost 2 years ago
Do you mean the cards have different height while resizing screen size? I think that's because every card has different text length, thus different height. If you want all card has the same height, remove
align-items: center;
frommain
. That removal would make all cards has the same height though different content. I recommend though, to removemin-height: 100vh;
frommain
too, and add this style:body { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
Hope this helps. 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