Design comparison
Solution retrospective
This was a great challenge. I used CSS flex box to centre the component however this can also be done with CSS Grid. Next time, I would try to use Grid.
What challenges did you encounter, and how did you overcome them?This challenge was quite easy though I found it hard to make the `` position correctly in the QR component. And also getting the correct box shadow was quite a challenge for me.
What specific areas of your project would you like help with?Having said that I used flex, though I wasn't able to align the text with the exact spacing as provided in design files. I used margins and padding in the `
Community feedback
- @mbalali63Posted 8 months ago
Hi Rupesh Your work is great. Unfortunately your code is not accessible. But the considering the design comparison above, reveals that the font sizes shall be decreased. if the main container (the white box) height be set to 100%, with extra padding, then the overflow of text below the box will be removed. Good luck
1@roopxxPosted 8 months agoThanks @mbalali63 for the feedback! Yes, you are right the font is overflowing outside the main container but I don't know why it is happening in the preview tool above whereas when loading the site the design looks good to me on browser.
Can you once check the deployed link here ?
0@mbalali63Posted 8 months agoHi @roopxx In your style.css file, and in the definition of class qr_component, just comment or remove the line that is specifying height: 477px; it will be resolved.
.qr_component { display: flex; flex-direction: column; align-items: center; background-color: hsl(0, 0%, 100%); /* height: 477px;*/ width: 320px; border-radius: 30px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
1
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