Design comparison
Solution retrospective
Coded first in mobile. Using a small size screen so I can't get the perfect size yet for Desktop version.
Kinda satisficed to the result but needs more practice to perfect it.
Community feedback
- @obocanegra-devPosted over 1 year ago
Hello Sansa! 👋
Congratulations on your progress on this project! I have some suggestions to further enhance your design:
Instead of using
padding: 5%;
to center the container, I recommend applying the following properties to thebody
selector in your CSS file:display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh;
. This will effectively center the container both vertically and horizontally. Once you make these adjustments, you can remove thepadding
property.Additionally, I suggest using relative units, such as
rem
orem
, for font sizes instead of pixels. This allows for better scalability and ensures that your text adapts well to different devices and screen sizes.For images that are not purely decorative, like the QR code, it's beneficial to provide a descriptive
alt
attribute. For example, you could use "QR code to Frontend Mentor website". This provides valuable context to users who rely on assistive technologies, enhancing the accessibility of your site.You're doing a fantastic job! Keep up the great work, and don't hesitate to ask if you have any questions or need further assistance. Good luck with your future endeavors! 🚀✨
Best regards, Oscar
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