Design comparison
Solution retrospective
I struggled for a good 30 minutes with trying to position the multiple background images in a way that respected the design documents. Any other suggestions for achieving that background image effect would be really appreciated :)
Community feedback
- @vanzasetiaPosted almost 3 years ago
Hello there, Clamonty! 👋
Congratulations on finishing this challenge! 🎉
Yeah, positioning the background images on this challenge is the most challenging part of this challenge. Another way, to deal with them is by using CSS
background
properties on themain
element. In my opinion, it's much easier since there's abackground-position
property.I have some feedback on this solution:
- Accessibility
- Good job on using
main
landmark! 👍 - Make the
card-footer
element asul
element and swap thediv.footer-stat
withli
. - Change all the
h1
inside thefooter-stat
element tospan
. Every page should only contain oneh1
as an identifier. Also, the number (text) should not be a heading element too. The content below it is too small. - The profile image is an important content of the page so I would recommend adding alternative text to it. You can use his name as the
alt
value.
- Good job on using
- Styling
- Don't limit the height of the
main
element, it will not allow the users to scroll the page if the page content needs moreheight
. Usemin-height
instead. - I would recommend keeping your stylesheet as low specificity as possible. You can achieve that by not nesting in the Sass files. The golden rule of nesting is only nesting when you're going to use
@media
query, pseudo-elements, and styling pseudo-class (:hover
,:focus
, etc).
- Don't limit the height of the
That's it! Hopefully, this is helpful! 😁
Marked as helpful1 - Accessibility
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