Design comparison
Solution retrospective
First of all margins is difficult for me
Community feedback
- @MelvinAguilarPosted about 2 years ago
Hi @Rheomacrodex 👋, good job completing this challenge, and welcome to the Frontend Mentor Community! 🎉
Here are some suggestions you might consider to improve your code:
- Your solution should contain a
title
tag with the name of the challenge and anicon
.
<title>Frontend Mentor | QR code component</title> <link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png" />
- Try to use semantic tags in your code. Click here for more information.:
With semantic tags:
<body> <main class="main-container"> . . . </main> <body>
- 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. - The container isn't centered correctly. You can use flexbox to center elements:
body { width: 100%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
Links with more information:
- The Complete Guide to Centering in CSS.
- A Complete Guide to Flexbox (CSS-Tricks).
- How TO - Center Elements Vertically (W3Schools).
- CSS Layout - Horizontal & Vertical Align (W3Schools).
I hope those tips will help you.
Good job, and happy coding!
2 - Your solution should contain a
- @VCaramesPosted about 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
-
To help identify the main content of you site you will want to encase your entire component inside a Main Element.
-
The Alt Tag description for the QR image needs to be improved upon. Its needs to tell screen reader users what it is and where it will take them to when they scan it.
-
Change
width
tomax-width
in your component’s container to make it responsive. -
Change
width
tomax-width: 100%
in your image to make it responsive. You will also want to remove theheight
as it is unnecessary.
If you have any questions or need further clarification, let me know.
Happy Coding! 👻🎃
0 -
- @Fahadnawaz007Posted about 2 years ago
Good effort brother. Keep it up you're doing great.
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