Design comparison
Solution retrospective
My first challenge in this site. Feel free to comment, would love to hear your advice :>
Community feedback
- @PhoenixDev22Posted almost 3 years ago
Greeting @surigaoadrian,
I have few suggestions regarding your solution:
- To tackle the accessibility issues, you can add a
<h1>
withclass="sr-only"
(Hidden visually, but present for assistive tech).
.sr-only { border: 0 !important; clip: rect(1px, 1px, 1px, 1px) !important; -webkit-clip-path: inset(50%) !important; clip-path: inset(50%) !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; padding: 0 !important; position: absolute !important; width: 1px !important; white-space: nowrap !important; }
-
In
height: 490px;
you would never want to set theheight
of the element. Let the content inside the card element dictate the height of it. -
You should use
em
andrem
units .Bothem
andrem
are flexible, Usingpx
won't allow the user to control the font size based on their needs. -
General point , try to put classes directly on anything you want to style
Overall , your solution is good. Hopefully this feedback helps.
Marked as helpful1@surigaoadrianPosted almost 3 years ago@PhoenixDev22 thank you so much for your advice sir, I'll keep that in mind
1 - To tackle the accessibility issues, you can add a
- @GitHub-dev12345Posted almost 3 years ago
If you want to reduce your accessibility, Change this code. π
- <div class="card"> to <main> ( Used main tag for main card design )
- <div class="attribution"> to <footer> ( Used footer tag for footer design)
I hope you find this helpful & Nice Work Keep it up ππ
Marked as helpful1@surigaoadrianPosted almost 3 years ago@GitHub-dev12345 thank you for your tip sir, will change it right away π
0 - @Kamasah-DicksonPosted almost 3 years ago
Your solution looks great on mobile Good work Keep codingπ
Marked as helpful1@surigaoadrianPosted almost 3 years ago@Kamasah-Dickson thank you so much for the feedback π
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