Mobile Responsive Single Price Grid Component Built with Grid & Flex.
Design comparison
Solution retrospective
hey everyone, I'm super grateful to everyone giving me feedback every since i started these challenges. your words have really helped me grow to understand alot more about development so i say Thank you so much.
here's another challenge I've completed.
- the one uncertainty i have is not using grid as well, still getting used to it 😅. so if you have any comments about that or my solution in general, please know that i am open to learn from you. thank you
this observation is after i submitted
- i noticed my solution in comparison to the design was looking a little squished. can anyone help me with that? I've ran out of ideas 🤖
Community feedback
- @correlucasPosted over 2 years ago
Hello Johnny, congratulations for your solution!
An alternative to create this grid layout is creating a grid like this
grid-template-column: 1fr 1fr 1fr 1fr
and set to the bigger rowgrid-column: span 2
then for the mobile version set thegrid-template-column: 1fr
for a single column and each in a different row.But anyway you did it right, this is just another way to build it.
Marked as helpful1@johnnysedh3llloPosted over 2 years agoayee! thanks for the feedback bro. i did try this approach initial but it was acting a bit weird so i went with this one 😅. although i add a
max width
tho. i wanted to ask if i had to do that?0 - @DavidMorgadePosted over 2 years ago
Hello and congrats on finishing the challenge!
Like Lucas said you could definitely go for a four column grid, you could also get them with
grid-template-columns: repeat(4, 1fr)
this will get you exactly 4 columns with the same size!Also, your project looks fine, maybe a bit bigger than normal, are you using a little monitor when you are doing your challenges? or maybe you have you screen with a bit of zoom?, anyway you can fix it by reducing a bit the paddings and the sizes of the font and boxes, don't worry about that, it still looks good! Good job.
Hope my feedback helped you!
1@johnnysedh3llloPosted over 2 years agothanks david, I'll try using the
grid-template-columns
method instead.1
Please log in to post a comment
Log in with GitHubJoin 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