Blog Preview Card - plain HTML and CSS using flexbox

Solution retrospective
I feel pretty good about how my 2nd challenge went. There were a few issues with spacing that I was able to figure out without the help of Copilot, and this was good practice with flexbox. I'm still not sure why my fonts don't look like the provided design image, and I am not sure how to adjust the font sizing for smaller screens without using media queries. Looking forward to seeing other solutions to this one.
What challenges did you encounter, and how did you overcome them?I downloaded Figma so I could view the provided files, but really struggled to figure out how to use that tool. Ultimately I just used the .png files as my guide, but I need to spend a little time getting up to speed on Figma for future challenges.
I also initially struggled with flexbox to get the card elements aligned vertically until I realized I needed to use flex-direction: column. (Facepalm moment but a good learning experience)
What specific areas of your project would you like help with?The width of my card (or possibly my font sizes?) are not matching the example, so my excerpt text only takes up 2 lines instead of 3. I also notice the font weight of my title and the author name don't seem to be as bold/thick as the example. Not sure what I need to do there to fix it.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @komaljatoi
Looks really good! One suggestion you could try for the font weight - instead of font-weight: bold, you could try font-weight: 800, which would make the title/author bolder.
Marked as helpful
Join 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