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

Building order summary with flex

Shiash 100

@kloprop

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any comments is welcome! Thanks

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hi, Shiash!

Here are some suggestions for improvements.

  • Use the main element for the card instead of using <div class="card">.
  • Set max-width instead of width to the card to allow the card to shrink while still preventing it from getting too large.
  • Remove font-size: 1rem from the <body> styling. It is already the default styling.

I hope this helps. Happy coding!

Note: Please remove the #fresh since the website is not built with "Fresh" — it could be either Fresh: A Modern Approach to Lightweight Frameworks or fresh - The next-gen web framework..

1

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