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 Card

@Mitko90

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


Hello,

This is my solution

Maybe you can help me with the positioning of the background image. I couldn't make it look like the provided design.

Thanks in advance

Community feedback

@Lasha-Nikolaishvili

Posted

Hello Mitko,

You can correctly position the background image by setting its background-position as top.

Here are the styles that helped me achieve the desired result:

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

@media (max-width: 700px) {
    body {
       background-image: url(./images/pattern-background-mobile.svg);
    }
}

The media query is to change the background image when on small screens.

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