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

order summary using grid and flex

Mohan Krishnaβ€’ 160

@Mohan823

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


I have in trouble when I m creating my mobile layout. because the container can't shrink itself. But after a cup of tea, I simply close my windows means laptop, and starts thinking. Suddenly a spark came to my mind😎 Then come with solution the container isn,t overflowing itself due to that its not shrink. then i add "overflow: hidden;" to container. The problem is solved.πŸ₯°

But if you have any alternative easier than this! ALWAYS WELCOME!!!

Community feedback

Vanza Setiaβ€’ 27,795

@vanzasetia

Posted

Hi, Mohan! πŸ‘‹

Congratulations on finishing this challenge! πŸ‘

The way I would make the card responsive is simply use max-width and overflow: hidden. The max-width is used to prevent filling the entire while still allowing it to shrink. For, the overflow: hidden is used to force the illustration image to obey the border-radius of the parent element.

For the CSS reset, I recommend using the "Modern CSS Reset" by Andy Bell. His CSS reset is good for modern browsers and accessibility.

Also, I recommend using the universal selector (*) rather than selecting and listing all HTML elements.

One more suggestion is to always specify the type of the button. In this case, set the type of them as type="button". It will prevent the button from behaving unexpectedly.

That's it! I hope this helps!

Marked as helpful

0

Mohan Krishnaβ€’ 160

@Mohan823

Posted

@vanzasetia Verymuch thank you for the valuable feedback. Today onwards when i m creating button i won't forget to mention it's type.😎

0
Vanza Setiaβ€’ 27,795

@vanzasetia

Posted

@Mohan823 No problem! πŸ‘

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