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

Responsive Order Card Page, using Flexbox

PJβ€’ 110

@Kitezh1

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 struggled with getting the background to be the same as the challenge. Any tips on how to achieve this would be appreciated! Also unsure of the use to HTML tags, whether article and sections were used correctly?

Community feedback

Boots πŸ˜Ίβ€’ 1,590

@adityaphasu

Posted

Hi! Nice job completing the challenge!πŸ™ŒπŸ»

For the background image you can add this to the body:

body{
background-color: hsl(225, 100%, 94%);
background-size: contain;
background-repeat: no-repeat;
}
  • What this code snippet does is that it sets a background-color to the body along with the background image that you have set, the background-size is set to contain which scales your bg-image to fit within the body, preserving its aspect ratio and the background-repeat is set to no-repeat which makes sure the bg-image doesnt repeat.

  • As for your question , <article> tag is used to represent standalone content (content that can make sense on thier own). In this case its just an order summary (we know its for music but listen to them from which application or website? do we know which company? etc. ) it has very limited info so I think it should be a <section> which is basically used to group related content and since here all the content is related to each other it makes more sense to use it instead of an article.

I hope this cleared your doubts about the usage of tags in your project and help you fix the background!

Happy coding!πŸ•ΊπŸ»

Marked as helpful

0

PJβ€’ 110

@Kitezh1

Posted

@adityaphasu

Thank you. This was really helpful :)

1

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