Design comparison
SolutionDesign
Community feedback
- @asbhogalPosted over 1 year ago
Hi Isidora, great work! The design and content matches very closely to the mockup.
Just a few things I've noticed:
- Because of your
width
andposition
values for your child elements, it's causing overflow issues between320px
and480px
. If you have a look in the responsive viewer of the dev tools, you'll notice this on your end. Ideally, you shouldn't place explicitheight
orwidth
values on child elements, instead let them occupy the natural space they require, and set amax-width
value on the parent container, with awidth: 100%
. - You could probably use
flex
orgrid
instead of setting theposition
values for the above elements, and using thegap
property to apply some of the spacing - Your
img
requires analt
attribute for screen readers and other assistive technologies to understand the purpose and context of the image. As well as for accessibility, it also helps crawlers understand for SEO (worth knowing about this now before scaling up to full-page applications) - Also, all your values should be in rem not px. Grace has a good article explaining this Link
Hope this helps!
Marked as helpful1 - Because of your
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