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 component using html and css

merii 80

@merii-crl

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'm having a hard time making the image(svg) fit in the container. If you have a time to check my site you'll see the image was cut out and is not full, so I'd love to know how would you solve this?

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have other recommendations regarding your code that I believe will be of great interest to you.

BACKGROUND iMAGE 📸:

  • The background-image has not been properly set yet, So let me explain How you can easily apply the background color along with the svg they provided.
  • Add the following style rule to your css, and then experience the changes
body {
    background: url(./images/pattern-background-desktop.svg), #E1E9Ff;
    background-repeat: no-repeat, no-repeat;
}
  • Now remove the following html & css, after removing you can able to see changes.
<div class="bg-img">
    <svg xmlns="http://www.w3.org/2000/svg" width="135rem" height="437">
      <path fill="#D6E1FF" fill-rule="evenodd" d="M0 349.974c218.558 116.035 460.05 116.035 724.475 0s502.933-116.035 715.525 0V0H0v349.974z"></path></svg>
 </div>

.bg-img {
  position: absolute;
  top: -10px;
  z-index: -1;
}
  • Tip, Don't forget to generate a new screenshot after editing the css file

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

1

merii 80

@merii-crl

Posted

Thank you>> @0xAbdulKhalid

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