Design comparison
SolutionDesign
Solution retrospective
Feedback is appreciated. If there are any mistakes or bad practices in the code please let me know.
Community feedback
- @vanzasetiaPosted about 3 years ago
👋Hi Egemen!
👍 Good job on completing this challenge! Your solution looks good on portrait of mobile view 🙌. For the landscape, the card touching the top and bottom of the page. You can prevent this, by adding
padding
to yourbody
element.More feedback:
- 👍 Good job on wrapping the page content with a landmark.
- 👍 Good job on leaving the
alt
empty for all decorative images. You might want to addaria-hidden="true"
to prevent the VoiceOver screen reader pronounce those images, when it shouldn't. - Try to use
span
and make itdisplay: block
to break that into two lines instead of usingbr
tag.
<p> Annual Plan <br> $59.99/year </p>
- Use
rem
or sometimesem
instead ofpx
. It's a good practice and also good for user accessibility.
That's it! Hopefully this is helpful!
Marked as helpful1 - @patricia-hurstPosted about 3 years ago
Hello, just a few things to point out:
- for the annual plan and price, either use a <span> to separate them or set the price into a separate tag entirely (such as another <p> and then use classes to style them separately). This allows for much easier styling
- you have anchor tags that are styled and behave like buttons, so you should be using actual <button>'s with the anchor tags
- look into using em or rem for padding (I would read up on the difference between them, part of it is user preference and partly sometimes one is better to use in a certain scenario over the other)
Marked as helpful1
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