Card component using Flexbox.

Solution retrospective
Hi everyone, I just want to know if it was correct to use the article tag for the card or I should used a div instead. Thank you!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @munyite001
Hey, Article tags are just okay, but they're mostly used to separate different parts within a given section. My opinion is it's better to use a div to denote the entire card, to act like a container, then you can use article tags for the different sections in your card, like the image section, or the text section. But overall, really nice design. Happy coding!!
Marked as helpful - @afaiz-space
Hey @ferlagher, congratulation on completing the challenges.
- Add
justify-content: space-between;
in article element. - remove all padding from h1 and p element. after add
margin:25px;
in h1 element.
- Add
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