
Design comparison
Solution retrospective
I’m most proud of successfully centering elements using Flexbox and ensuring responsiveness across different screen sizes. Initially, aligning the card perfectly in the center was challenging, but after using display: flex; align-items: center; justify-content: center;, I achieved the desired layout.
Next time, I would explore CSS Grid for layout structuring to see if it provides a more efficient approach, and I’d also focus more on accessibility improvements following WCAG guidelines.
What challenges did you encounter, and how did you overcome them?a. Centering the Card: I struggled with centering the QR code card properly. I overcame this by learning more about Flexbox and using display: flex; align-items: center; justify-content: center;.
b.Ensuring Responsiveness: The design didn’t scale well on small screens at first. I fixed this by setting a max-width for the .card and applying media queries for better responsiveness.
What specific areas of your project would you like help with?a. Improving Code Efficiency: I’d like feedback on whether my CSS structure could be optimized further, such as reducing redundancy or using best practices.
b. Expanding Layout Techniques: While I used Flexbox effectively, I’d like to understand how CSS Grid could be applied for better structure in future projects.
Community feedback
- @BlackpachamamePosted about 1 month ago
Greetings! you have done a great job 😎
- I recommend doing a small
reset
to the styles that come by default in the browsers. To do this, you can apply a couple of properties to the universal selector*
, with this you will make your site look the same in all browsers - I leave you the task of researching the
reset CSS
and thebox-sizing: border-box
- If you didn't apply the reset, you can add
margin: 0
to yourbody
, this will remove annoying scrolling on large screens. If you want to maintain separation on very small screens, you can apply themargin
again using media querys
Marked as helpful1@SanCross354Posted about 1 month ago@Blackpachamame Thank you Sir for reviewing my challenge project. I'm gonna try a small reset. That's a new thing for me btw, but having someone giving advice can improve my skill.
1 - I recommend doing a small
- P@Mohammed-Osama-pgPosted about 1 month ago
the layout looks good even if it looks a little larger than the screenshot, but it is readable and responsive.
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