Design comparison
Solution retrospective
I believe this is my first project here, it's been a while and I am testing the mentor path.
What challenges did you encounter, and how did you overcome them?I believe this is my first project here, it's been a while and I am testing the mentor path.
What specific areas of your project would you like help with?I believe this is my first project here, it's been a while and I am testing the mentor path.
Community feedback
- @denieldenPosted almost 3 years ago
Hi Juan, great job!
Try to remove all
margin
fromcard
class and use flexbox to the body for center the card. Read here -> flex guideAlso set
heigth
of body to100vh
because Flexbox aligns to the size of the parent container.Hope this help and happy coding :)
Marked as helpful1@newbpydevPosted almost 3 years ago@denielden Hey Daniel, thanks for the tip, I will play around more with flexbox to get it down right. Thanks for the height tip too, I think I used it at first but then I ran into a bug, I will definitely use it next time. 🙇🏾♂️
1@denieldenPosted almost 3 years ago@newbpydev You're welcome. And don't forget to mark my comment as helpful if it helped ;)
happy coding
Marked as helpful0@newbpydevPosted almost 3 years ago@denielden Thanks, I got the 100vh bug again, the problem you need to test it by zooming on the page and then scrolling down and you will see what will happen.
1@denieldenPosted almost 3 years ago@newbpydev Have you removed all the
margin
fromcontent
andattribution
class?Otherwise try using
min-height
on the bodyMarked as helpful1@newbpydevPosted almost 3 years ago@denielden Yes, I have now used the
min-height
to solve the bug I had, I believe I had a margin of 0 and then I added to the attribution and content.1@newbpydevPosted almost 3 years ago@denielden My mistake, I did on the newer projects, but this one I didn't add the
min-height
property.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