Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Result Summary Component using simple HTML and CSS

Rhea212•20
@Rhea212
A solution to the Results summary component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


How do I center both the divs of my main tag? The summary div is positioned in relative to the first div, so I was unable to center them both.

How to ensure both divs have the same height and width? I had to brute-force the paddings and margins to obtain the result.

A problem I encountered that I did not understand at all: A child span element did not receive the properties of the class that its parent p element had. Why did this happen? (Context: To couple the reaction icon with the word "reaction", I set them in a span but in doing so, the word "reaction" lost all properties of its parent p tag)

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Rhea212's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License