Responsive QR Component with Vanilla HTML+CSS

Please log in to post a comment
Log in with GitHubCommunity feedback
- @correlucas
👾Hi Emin Bilgen, congratulations for your first solution!👋 Welcome to the Frontend Mentor Coding Community!
Great solution and great start! By what I saw you’re on the right track. I’ve few suggestions to you that you can consider to add to your code:
The main heading have the tag
<h2>
, in this case its better you replace it with<h1>
since this heading is the main title in this page. Remember that every page should have one<h1>
to declare which is the most important title and that you should follow the hierarchy using the heading sequence h1, h2, h3, h4, h5 and never jump a level.Use relative units like
rem or em
instead ofpx
to have a better perfomance when you page content resize in different screen and devices.REM
andEM
does not just apply to font size, but to all sizes as well. To save your time you can code you whole page usingpx
and then in the end use a VsCode plugin calledpx to rem
to do the automatic conversion or use this website https://pixelsconverter.com/px-to-rem✌️ I hope this helps you and happy coding!
Marked as helpful - @chaursiyasanjeet
Hey Emin welcome to front-end mentor family you have ser width in percent actually you have to set width exactly like some 300px; so the qr-code container wpuld have exact size and you have also used many div in your document you just don't need to do that you can do your work with just main element.Please see your code once again because the text and image are comimg outside of container.And if you need any help feel free to dm me.
Marked as helpful
Join 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