Design comparison
Solution retrospective
I found it hard to position the dice in the middle of the div half at the bottom. I could not figure out why there is a greater space between the divider image and the button. If anyone could give me a feedback on these two questions or in general about my code I would be really grateful.
Community feedback
- @Bayoumi-devPosted over 2 years ago
Hey Bence,
- To position the dice in the middle of the div half at the bottom:
.container { //... min-height: 200px; /*Set the height of the box as you want*/ } #adviceBtn { //... /* transform: translateY(80%); */ <------ Remove /* margin: 0 auto; */ <------ Remove position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%) }
- You have some
accessibility issues
that need to fix.
1.
Buttons must have discernible text
, Set the attributearia-label
to describe the button.<button id = "adviceBtn"" aria-label="Advice generator"> //... </button>
2.
All page content should be contained by landmarks
, Contain the attribution with<footer>
.<footer> <div class="attribution"> //... </div> </footer>
3.
Page should contain a level-one heading
, Change<header>
toh1
You should always have oneh1
per page of the document.<h1id = "adviceNumEl">Advice # </h1>
I hope this is helpful to you... Keep coding👍
Marked as helpful0@zambobencePosted over 2 years agoDear Ahmed, Thank you very much for your valuable feedback, I will use them in my future projects as well. I have managed to correct this project. :)
Best regards Bence
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