Single Price Grid Component using Media Queries and FlexBox
Design comparison
Solution retrospective
I was confused if I was supposed to make the borders to the edge of the screen. Also, the designs had "rounded corners". I'm not sure if I was supposed to replicate that.
Community feedback
- @katrien-sPosted over 3 years ago
Hi Matthew, yeah, you're supposed to replicate the rounded corners. The design doesn't need to stretch across the entire screen. Imagine how that would look on a 24-inch screen. Doesn't it say anywhere what the max-width should be?
You could maybe make your
min-width
a bit smaller. Setting it to1080px
makes the site look too stretched on a tablet.Why didn't you use the actual font? Why is the text inside your button a
h2
? And why isn't it abutton
but a<div class='button'>
. This is very bad for accessibility. A screen-reader would only see all these headings on your site and deem every text as important. Set all text top
and use classes to style them. Adding a class.margin-bottom
is a bit odd. Combine the tags in CSS likeh1, h2 { margin-bottom: 1em;}
Always work towards writing just enough code.Give it another go and try to make it really as close to the actual design.
Marked as helpful1 - @shake88juntPosted over 3 years ago
Crap yeah, I totally forgot to make it an actual button. The margin tip is good thanks, and also making the small screen smaller would look nicer. Appreciate someone actually reading it , ty
0
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