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

Used css flexbox

@bihari123

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


there is something wrong with the main-background which i made. Can someone help with that?

Community feedback

Ines Riahi 110

@inesriahi

Posted

Hi, Set background-repeat: no repeat; to avoid the repetition, and add a background too using this: background: hsl(var(--pale-blue)) url("images/pattern-background-desktop.svg");

All the Best !

2

@MarthaAdhiambo

Posted

Try preventing repetition by using:

Background repeat: no repeat;

when styling the background image in the body

1
Maura 30

@maura1

Posted

Hi Tarun, It looks like you are trying to position your elements using 'flex' and 'position: absolute'- In the body selector, you have correctly used flex, this centers the two elements( the card and the attributes element) in the center of the page. Just add 'height:100vh; There is no need to try and center the card again using the position, top, left, transform-translation. For the image, as already stated, use the background-repeat, no-repeat, add background-size:100%, and background-position: top.

Don't forget to add the @media... to make your page responsive.

I am just starting this journey and this is my first challenge, so I hope I have not added any confusion. Best of luck, Maura

0

@martinelias1312

Posted

Hello, my tip for this one and future. Images should have alternate text. <img alt="person listening to music" src"..." >

Alternate text can be empty <img alt=""......> for decorative elements like icon-music in this challenge.

Article about alternate text: https://dequeuniversity.com/rules/axe/4.3/image-alt?application=axeAPI

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