Design comparison
Solution retrospective
All feedback welcome in open hand thank you advice in this project
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Hussein, congratulations for your new solution!
I saw that you've used
margins
andposition relative
to give the container its alignment, this works but is really tricky to control all the content. My advice for you is to useflexbox
to create this alignment. To make this alignment, first of all putmin-height: 100vh
to thebody
to make the body display 100% of the viewport height (this makes the container align to the height size thats now 100% of the screen height) size anddisplay: flex
eflex-direction: column
to align the child element (the container) vertically using the body as reference.You can create a media query to save space in the
stats / followers
to make each information in a different row. Here’s the code for this media query.@media (max-width: 350px) { .followers { display: flex; justify-content: center; align-items: center; gap: 30%; margin-top: 10%; flex-direction: column; } }
✌️ I hope this helps you and happy coding!
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