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 with flexbox

@hirohiro2255

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi all! Tried solving this challenge as little usage of "margin" as possible. Replaced some "margins" with (flex)gap. All feedbacks are appreciated. Cheers!

Community feedback

@ramazanima

Posted

Your solution is great, and I liked the idea of using sanitize.css. Some suggestions I would give are:

  1. In your CSS file, you set the margins individually (margin-left, margin-right). I think it would be better to use the shorthand syntax and provide documentation. The same way goes for padding.
  2. Always set the box-sizing property to border-box to lay out your elements. This makes dealing with the sizes of elements easier.
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