Blog preview card with flexbox

Solution retrospective
After completing the QR code component card this wasn't a difficult challenge because it was almost the same.
What specific areas of your project would you like help with?In css I used a margin-top
and margin-bottom
on my h2
. If I remove those margins the author image gets crushed and I don't know why.
/* Author name */ h2 { color: var(--color-gray-950); font-family: 'Figtree', sans-serif; font-size: var(--font-size-3); font-weight: 800; /* Extra bold/Ultra bold */ line-height: 150%; /* Image gets crushed else IDK why */ margin-top: auto; margin-bottom: auto; margin-left: 0.5rem; }
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Niels Bruinsma's solution.
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