QR Code Component (Refreshed Solution)

Solution retrospective
Easy introduction project to brush up my previous knowledge on HTML and CSS
What challenges did you encounter, and how did you overcome them?Forgot mostly about the basic syntax of HTML and CSS. Post that, I was also told that my styling sets too much absolute height and width, which are not ideal in responsive design.
What specific areas of your project would you like help with?Recommendation on CSS design tip, e.g. setting min-height instead of height and etc.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@GregLyons
Congrats on your first challenge! Your solution looks good. Here are some tips for future challenges:
- Consider using a CSS Reset. Many elements in HTML have some default styles applied to them, like some top/bottom margin on
<p>
tags. In this case, those margins end up being in line with the design, but oftentimes you may find yourself struggling to remove a lot of default stylings to get your work to look more like the design. A CSS Reset like the one above should alleviate this, and give other more sensible defaults to start from. - Your card wrapper has a
width: 20%
. This looks good on larger screens, but as you shrink the screen horizontally the card gets too narrow too quickly. Something like minmax or clamp are helpful to give a minimum and maximum width for your content, which will make your designs more responsive.
Good work again, and best of luck on future challenges!
Marked as helpful - Consider using a CSS Reset. Many elements in HTML have some default styles applied to them, like some top/bottom margin on
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