
Design comparison
Community feedback
- @rkrhlikarPosted 3 months ago
I noticed that you have given the
.qrText
element a height of131px
, which matches the reference Figma file, but because you havebox-sizing
set tobox-sizing: border-box;
the specified height also includes padding given to this element. This causes the content of.qrText
(h1
andp
elements) to overflow the container as the inner height of the container is only99px
.This could be fixed by either increasing the element height by
32px
to account for padding or by getting rid of the explicit height setting and relying on automatic sizing of the flexbox based on its contents.Marked as helpful0
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