Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Blog preview card

ِAhmed 280

@Axsel519

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@yahappylemon

Posted

Here are just some ideas, hope you find them helpful!

  1. Add *{margin: 0; padding: 0; box-sizing: border-box;}: Reset CSS and have a better control on all the elements.
  2. Use max-width instead of width on .preview-card: Let the component grow and shrink according to the screen size.
  3. Add max-width: 100% to .top-image and remove margin: contain the image in the card component.
  4. Adjust margin and padding
  • Remove margin: 0% 5% , add margin-top: 24px on .label
  • Remove padding: 0% 5% on <h1>, <h5>, <p>
  • Add margin: 12px 0 on <h5>
  • Add margin: 12px 0 24px 0 on <p>.

This is a peer review required by Frontend Mentor

0

ِAhmed 280

@Axsel519

Posted

@yahappylemon Thank you for the advice ❤️

0

Please log in to post a comment

Log in with GitHub
Discord logo

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