
Design comparison
Solution retrospective
This project showcases my skills in Html, and CSS flex box. Although grid was used in the challenge, I found it easier using CSS flex box over grid. So I solved this challenge with CSS flex box
What challenges did you encounter, and how did you overcome them?The challenges I encountered while solving this, was trying to generate a live QR code from QR code monkey websites. I tried it many times but couldn't get it right then I left it to download the images folder from frontend mentor
What specific areas of your project would you like help with?I will need help with understanding CSS grid although I didn't use it in the solution project
Community feedback
- P@lia-oliveiraPosted 5 months ago
Think of CSS Grid as a parent and child relationship. On the parent, you define the grid and its properties. On the child, you specify how the elements will be arranged.
You can also nest one grid inside another without any issues if needed. Column measurements can be in fr, px, ... or even a mix of these units.
For more details, check out the complete guide on CSS-Tricks—it’s a great resource to explore all the possibilities and learn more about this. I hope this helps!Grid Layout Guide: https://css-tricks.com/snippets/css/complete-guide-grid/
Example:
CSS Reset: Ensures consistent styles across different browsers */ *, html, body { margin: 0; padding: 0; box-sizing: border-box; } .father { min-height: 100vh; display: grid; /* Declares the parent container as a grid layout */ grid-template-columns: 1fr; /* Creates a single column that spans the entire width of the grid */ align-items: center; /* Vertically centers the content within the grid */ justify-items: center; /* Horizontally centers the content within the grid */ } .son { width: 50vw; height: 30vh; color: aliceblue; background-color: #4682B4; }
<div class="father"> <div class="son"> <h1>Title</h1> <p>Description</p> </div> </div>
Marked as helpful0@Deevyne21Posted 5 months ago@lia-oliveira Thank you so much for your feedback and help alongside the resources It will be a great help to learn and master CSS. You've done well
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