Design comparison
Solution retrospective
This page is the one that I put the most effort into make it responsive, and, It's not the first time I've used a grid, but I've never created anything quite like this with it.
What challenges did you encounter, and how did you overcome them?It was difficult to position the cards where they were supposed to be, but I learned how to use grid-row
and solved the issue.
I'm open to any suggestions.
Community feedback
- @0xabdulkhaliqPosted 6 months ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have a suggestion regarding your code that I believe will be of great interest to you.
DON'T USE MULTIPLE H1 HEADINGS :
- Adding more than one
h1
heading per page is not a good practice and it will causes severe accessibility issues.
- Every site must want only one
h1
element identifying and describing the main content of the page.
- An
h1
heading provides an important navigation point for users of assistive technologies, allowing them to easily find the main content of the page.
- So we want to change the second
h1
elementdelivery__title--powered
into ah2
element or otherwise you could just add the content of that one into theh1
element and just wrap it using aspan
with the class ofdelivery__title--powered
to style it.
- Example:
<h1 class="delivery__title"> Reliable, efficient delivery <span class="delivery__title--powered"> Powered by Technology </span> </h1>
- Now you can easily style your heading without worrying on accessibility part.
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0 - @karthikganesanTRPosted 6 months ago
Congratulations on completing the challenge. I have one suggestion.
You correctly used BEM classes in your HTML. In CSS, you no need to use descedant selectors
.delivery .delivery__cards .delivery__card
instead usedelivery_card
. This line defeats the purpose of using BEM And also styles always cascade in an element.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