Design comparison
SolutionDesign
Solution retrospective
Feel free to give me feedback on my code. What i couldn't figure out was the slight scrolling, that is possible on the site. Any solutions?
Community feedback
- @MelvinAguilarPosted about 2 years ago
Hi @NikoFilou ๐, good job completing this challenge, and welcome to the Frontend Mentor Community! ๐
I have some suggestions you might consider to improve your code:
- You could use a CSS Reset to remove browser built-in styles and reduce browser inconsistencies. Your body's default margin causes the vertical scrollbar to appear.
Popular reset style sheets:
- Use the
<main>
tag to wrap all the main content in your solution instead of using<div class="card">
.
- To make alternative texts more worthwhile, add descriptive text to the alt attribute of the QR image to explain what the QR image does. Upon scanning the QR code, you will be redirected to the frontendmentor.io website, so an example of alternative text would be "QR code to frontendmentor.io". You can read more about alternative text here.
- Instead of using pixels in font size, use relative units of measure like
rem
orem
. The font size in absolute length units (px) does not allow users with limited vision to change the text size in some browsers. Reference.
- Use
max-width: 300px
to.card
selector instead of width, this will make the container card a bit responsive on mobile and set the element's maximum width to 300px.
- Use
margin: 0.938rem
ormargin: 15px
in the.card
selector to add some space for the container card and the screen edge on mobile devices.
Above all, the project is done well๐. I hope those tips will help you! ๐
Good job, and happy coding! ๐
1
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