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

Nanle 130

@N-anle

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


If you look closely, the background of the image is slightly peeking out in all the top, left and right sides of the image, any advice as to how I can get rid of this? Any responses will be greatly appreciated

Community feedback

@VCarames

Posted

Hey @N-anle, some suggestions to improve you code:

  • To fix your background:

Currently:

body{
    background-image: url(./images/pattern-background-desktop.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-color:var(--neutral-very-pale-blue);
}

New:

body{
    min-height: 100vh;
    background-image: url(./images/pattern-background-desktop.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-color:var(--neutral-very-pale-blue);
}
  • To fix the image:

Currently:

.img{
    width: 350px;
}

New:

.img{
    max-width: 100%;
    display: block;
}

Happy Coding!

Marked as helpful

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