Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive Result Summary Component

@AnoshaSohail

Desktop design screenshot for the Results summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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,

  1. Try removing the height: 100% property from .main-container and .result, and also remove the align-items-center class from both .main-container and .container
  2. 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 helpful

0

@AnoshaSohail

Posted

@at33v thanks for your help I've tried this on your suggestion but still there is space at the bottom of .result

0

Account Deleted

@AnoshaSohail you forgot to update main.css

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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