Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
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 component

CarvalhoVincentβ€’ 500

@CarvalhoVincent

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Lucas πŸ‘Ύβ€’ 104,420

@correlucas

Posted

πŸ‘ΎHello @CarvalhoVincent, congratulations for your new solution!

Your solution is already really good, the reason that its not responsive yet is due the width inside the container, button, header and pricing section, note that width is a fixed property this means that the size value doesnt change, instead use max-width this way you make these elements to have a maximum size but have the ability to decrease its size.

To make your image fully responsive add display: blockand max-width: 100% and object-fit: cover to make the image auto-crop when resizing inside the column:

img {
    display: block;
    object-fit: cover;
    max-width: 100%;
}

πŸ‘‹ I hope this helps you and happy coding!

Marked as helpful

0

CarvalhoVincentβ€’ 500

@CarvalhoVincent

Posted

Hello @correlucas and thank you for your comment, it helps a lot! I will try your suggestions in my next challenges. Happy coding!

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