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

Single price grid component Using Flexbox

Pablosviewwwโ€ข 110

@Antoinehtml

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi all,

Let me know if you see anything I could improve !

Thanks :-)

Community feedback

P
Graceโ€ข 27,870

@grace-snow

Posted

Hi Antoine,

This looks really broken for me I'm afraid. I think it's because you're using explicit sized margins on the .container. Instead, if you just used a max-width on that, gave it a small bit of padding, and had the margins set to auto on left and right it would be much more responsive.

Then all you'd need to do is set the flex-direction on the bottom section to column in a media query for mobile.

If you ever want to learn CSS grid, this is a great beginner challenge for it, so maybe return to this again when you look at that.

Keep going with your coding journey :) (And please upvote if you found this comment helpful)

2
Kyrylo Lvovโ€ข 160

@kyrylolvov

Posted

Hey! ๐Ÿ˜€

Great job on this challenge ๐Ÿ†

I might suggest adding padding-bottom for body, since the component is touching the bottom of the screen on my native resolution (1366x768). What's more, you may also consider adding media quaries to optimize it for mobile ๐Ÿ™‚

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