Design comparison
Solution retrospective
Hey guys,
I'm fairly new to coding. In fact, I've started last week with a course on Udemy and I'm loving it!
Feel free to give me feedback - some of the concepts are not quite clear for me like all the different units and stuff.
I managed to build that profile card component somehow but I guess the project lacks some kind of good practice. :D
Thank You.
Community feedback
- @ApplePieGiraffePosted about 4 years ago
Hey, Daniel Juergens! 👋
I gave you a bunch of feedback earlier, but somehow your solution went missing or something (or there was a glitch, IDK).
Anyway, good work on this challenge! 👍
And congratulations upon completing your first Frontend Mentor challenge! 🎉
I suggest,
- Using flexbox to center the card component in the viewport. Adding the following code snippet to the body should do the trick!
display: flex; align-items: center; justify-content: center;
- It looks like you have quite a few media queries in your solution, but they aren't really necessary for this design because hardly anything about the card component needs to change when the screen is resized. Simply give the card component a max-width and a fixed height so that it looks the same when the screen is resized and the width only decreases if the viewport gets really, really small.
- Setting min-height: 100vh on the body will help nicely center the card component, too.
Keep coding (and happy coding, as well)! 😁
2@DanielJ1337Posted about 4 years agoHey,
thank you so much for your feedback! Yeah, this positioning stuff is still not 100% clear.
But it keeps getting better :)
Have a phenomenal week. 👍
0
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