Submitted over 2 years ago
QR component using semantic HTML and Flexbox
@maudlinmandrake
Design comparison
SolutionDesign
Community feedback
- @afaiz-spacePosted over 2 years ago
Hey @maudlinmandrake,
- Remove height from the html element.
- Replace
height:100vh
withmin-height:100vh
in the bodyelement. - Remove height from the container class.
- Replace
box-shadow: 2px 5px 500px hsl(220deg 15% 55%);
withbox-shadow: 0 0 10px 2px hsl(220deg 15% 55%);
in the .qr-code class.
0@maudlinmandrakePosted over 2 years ago@afaiz-space Hey, thanks for such speedy feedback! I would love it if you could provide an explanation behind the first three points though. Being told a fix is great, but having the reasons behind the fix would be much more helpful for me in the future!
EDIT: I just went back and tested it. The first three changes you suggested actually broke the vertical alignment. Thanks, though!
0@afaiz-spacePosted over 2 years ago@maudlinmandrake
- no need height in the html element.
- Min height 100vh means the element should occupy the web browser viewport height.
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