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

result summary using margins and flexbox

@Ali-software-development

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


Ik i need to learn flex box i am having trouble with centering things without using margins.

Community feedback

Aimal Khan 2,260

@Aimal-125

Posted

You can use for centering items:-

display: flex;
justify-content: center;
align-items: center;

In your CSS code, increase the height of body element to 120 or 150vh by using media query with max-height: 400px; So that your card look good on small heighted screens.

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