Responsive QR code for desktop and mobile using CSS
Design comparison
Solution retrospective
Updated code regarding accessibility issues.
Community feedback
- @Illyaas4ShowPosted over 2 years ago
-
Also about the accessibility issues, where it says Document should have one main landmark, it is because you need to wrap the container of the card in a
<main>
tag because a page must have one main tag and only one. -
Page should contain a level-one heading
- This is saying that the page must have anh1
tag and only one, again. This is to help screen readers navigate the page easily. -
You should also add a
<footer>
tag as a landmark for screen readers.
I hope this also helps :)
Marked as helpful0 -
- @Illyaas4ShowPosted over 2 years ago
For responsive widths, I am very happy to introduce you to the
min()
,max()
andclamp()
functions in CSS. They allow you to set minimum and maximum values for a certain attribute which makes the attribute way more flexible and responsive. I strongly recommend reading this short article about min(), max(), and clamp() or just watching the video in the article.I hope this helps 😁
Marked as helpful0
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