Design comparison
Community feedback
- @Islandstone89Posted 10 months ago
HTML:
-
There should only be one
<h1>
on a page. Given there are 3 similar headings, I would change all of them into a<h2>
. -
"Learn More" would navigate to another page, hence it is not a button but a link.
CSS:
-
It's good practice to include a CSS Reset at the top.
-
You don't need to set
width: 100%
onmain
, as it is a block element, which are 100% wide by default. -
height
onmain
should be changed tomin-height
- this way, the content will not get cut off if it grows beneath the viewport. -
Remove all
width
andheight
. Add amax-width
in rem on the card container to prevent it from getting too wide on larger screens. -
Instead of
justify-content: space-between
on.card
, I would use agap
of a couple of em/rem. -
It is good practice to do mobile styles first, and use media queries (in rem instead of
px
) for larger screens.
Marked as helpful0@MercySpecturesPosted 10 months ago@Islandstone89 thank you so much for your valuable feedback.
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