Design comparison
Solution retrospective
I tried using CSS Grid for centering this time, as for first I used Flexbox. Centering blog card was a breeze!
I used line-height property, @font-face and even used font-weight.
What challenges did you encounter, and how did you overcome them?- Small but, I found :hover changing when it wasn't over the text, so I used
.blog-card h2 {
width: fit-content;
}
2 . Responsiveness for Smaller Screen. I tried using fixed units with calc(), but it worked with relative layout (vw).
What specific areas of your project would you like help with?Any alternative for responsive design
@media screen and (max-width: 768px) {
.blog-card {
width: 42vw;
}
}
As I had to try different values for this.
Community feedback
- @ShaunPourPosted 8 months ago
This is a very minor nitpick but the version submitted has a good deal more box shadow than what is present in the design so maybe tone down the values for that ever so slightly if you want it to match better.
Also, as another thing, generally, responsive design works better with min-width rather than max-width.
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