Submitted about 3 years ago
Responsive 3 card component made using grid layout
@Gabrielbe17
Design comparison
SolutionDesign
Solution retrospective
All feedback is useful, there's a little issue with the buttons, they tend to change its position a little when resizing the window, thanks!!!
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout in desktop looks great, the responsive state is different from other where you wrap the other cards in another row, but it is fine, but maybe you could use
justify-content: center
so that the card will be centered if it is on another row. The mobile layout looks fine as well, it just have some gaps between each card.Some suggestions would be:
- Always have a
main
element on a webpage. The.grid
selector on this one could have usedmain
instead ofdiv
. - Also, the
padding
used on the.grid
could just be used inside thebody
tag, this way, it won't create any extra height for the card. - On the
grid
selector as well, you should remove themargin
property, as this creates extra dimension for the card. By doing this, the card won't be centered, that is why on thebody
tag, addjustify-content: center
. - Avoid using multiple
h1
on a webpage, only use at least 1h1
per page. - Since
h1
is needed for every webpage, on this one, since there is no visual text that could be ah1
, it would be a "screen-reader" only text, this only means that, the text are only visible for users who are using screen-readers but no visible for sighted users. Take a look at Grace's solution on this challenge, inspect the layout and see the usage of theh1
as well as thecss
that she used, copy that because you will use that a lot.
Aside from those, really great job on this one.
0 - Always have a
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