Design comparison
Solution retrospective
1.I have a "Result" section within a container, and I want the "Result" section to take the full height of its parent element, but I'm struggling to achieve this. I have tried setting the height of both the parent container and the "Result" section to 100%, but it's still not working as expected. The "Result" section seems to have some extra space at the top and bottom, and I can't figure out why. I've also attempted using flexbox and the position property to create a full-height layout, but it didn't solve the issue. I would greatly appreciate any insights or suggestions on how to make the "Result" section take the full height of its parent container without any extra spacing. Thank you in advance for your help! 2. Also what are the best practices to do this project.
Community feedback
- Account deleted
Hello,
- Try removing the
height: 100%
property from.main-container
and.result
, and also remove thealign-items-center
class from both.main-container
and.container
- I also advise you not to use Bootstrap at this stage of learning. Instead, it would be sufficient to use style normalization libraries like sanitize.css or modern-normalize.css
Marked as helpful0@AnoshaSohailPosted over 1 year ago@at33v thanks for your help I've tried this on your suggestion but still there is space at the bottom of .result
0Account deleted@AnoshaSohail you forgot to update main.css
0 - Try removing the
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