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

@Robert0362

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,440

@correlucas

Posted

๐Ÿ‘พHello Robert, congratulations for your solution!

You've done a really good work here wrapping all component content inside the <main>, but note that your container isn't responsive yet, to do that, you can use a quick fix replacing the width you've used vw and use max-width see the corrections below:

.card {
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: 350px;
    background-color: white;
    /* width: 23vw; */
    margin-top: 5rem;
    border: 0px solid black;
    padding: 0rem;
}

Hope it helps and happy coding!

Marked as helpful

1

@Robert0362

Posted

@correlucas Thanks I do see the advantage

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