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

summary dashboard using flex

@islamabozeed

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


I didn't add any of main landmarks as the document is kinda a component not a full landing page

Community feedback

@seanaverill

Posted

You could use position: absolute; with top: 50%; left: 50% and transform: translateX(-50%) translateY(-50%); to center the whole main div that contains the element. Also even when creating just a module, it is still best practice to use landmarks if it is being published alone. In this case you could wrap it in a <main> tag and then apply the CSS I mentioned to that tag to get proper positioning.

1

@islamabozeed

Posted

noted, I centered it by only margin, that's why I seems without using position thanks for your comments and I'll improve in further designs.

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