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

Trying CSS Grid and media queries

P
innitman 130

@innitman

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I found it difficult to get rid of the white bit on the left of the container.

I found it really useful to stop and think about the html first.

What challenges did you encounter, and how did you overcome them?

Choosing the layout mode, especially for centering.

What specific areas of your project would you like help with?

I realise I haven't copied the spacing perfectly. I'm just wondering how to remove the white bits from the container (on the top and bottom left, to the outside of the blue card).

Community feedback

P
Koda👹 3,810

@kodan96

Posted

hi there!

you can have mixed border-radius on your elements, this property accepts up to 4 values. When giving it four it starts from the top left corner going clockwise. so your property should look something like this: border-radius: 10px 0 0 10px;

also you can center your content with Flexbox if you apply these to the body tag:

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

note that if you wanna do the same for bigger projects that has more elements you should also apply flex-direction: column; to the same tag

Hope this was helpful 🙏

Good luck and happy coding! 🙌

Marked as helpful

2

P
innitman 130

@innitman

Posted

thank you so much, really appreciate your effort and example code :)

@kodan96

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