Design comparison
Solution retrospective
The most difficult thing for a 100% noob at CSS, was centering the element vertically. So alternative ways are appreciated. I found a lot of ways to do it though, but nothing was as easy and pretty as this.
Everything else I'm pretty much OK with, but do tell if something's funny.
EDIT: I noticed that the fonts were not working for outside connection!
Community feedback
- @shashreesamuelPosted over 2 years ago
Hey good job completing this challenge.
Keep up the good work
Your solution looks great however I think your card needs a subtle box shadow using
box-shadow
.In terms of centering an element vertically you can use
margin: 0 auto
I hope this helpsCheers
Happy coding 👍
Marked as helpful1@henrimhPosted over 2 years ago@TheCoderGuru Thanks for encouragement.
Haven't even noticed the drop shadow! Free user atm, so no figma file precision.
0 - @slothmast3rPosted over 2 years ago
I place items in the center by using on parent DOM.
.parent{ display: grid; place-content: center; //or place-items: center; }
hope it helps!
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