Design comparison
Solution retrospective
I proud of the fact that I succeed grid working properly.
What challenges did you encounter, and how did you overcome them?I had a lot of hassle with the colours, next time I will make colours as classes and I will add those to desired HTML tags.
What specific areas of your project would you like help with?I didn't find a way to get the horizontal gap between the name and the "verified" smaller.
Community feedback
- @AdrianoEscarabotePosted 28 days ago
Hello Pickle, how are you? I was really pleased with your project, but I’d like to offer some advice that might help:
Using Flexbox or Grid on the
body
to center elements ensures a more responsive and adaptive layout, fitting different screen sizes seamlessly. It avoids manual calculations and constant adjustments needed withmargin
,padding
, or absolute positioning. These techniques provide more consistent alignment and simplify the code.flexbox:
body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
grid:
body { display: grid; place-content: center; min-height: 100vh; }
The rest is spot on.
Hope it’s helpful to you. 👍
Marked as helpful0@Augurk66Posted 26 days ago@AdrianoEscarabote
Hello Adriano! I am fine and thank you for your feedback. I really appreciate this tip, because I am still struggling to find a correct way to center all the elements in the body. I used this technique before, but I keep changing it. Maybe it is good idea to standardize my methods.
Have a good day!
1 - @1lijaPosted 29 days ago
Regarding your issue with horizontal gap between name and verified, you could've made a div that contains both of them, then you could play around with either display flex, maybe even use a grid there or just use gap. You should've centered the container but that's a quick fix. Other than that, all looks good
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