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

Interactive Rating Component

EExoduss 110

@EExoduss

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


My solution to this project.

It seems that the paragraph .result (You selected x out of 5) in the .card2 is no perfectly centred (it's a bit up with respect to the middle horizontal line).

Do someone know why?

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Hello @EExoduss!

Your project looks excelent!

About your question: **It seems that the paragraph .result (You selected x out of 5) in the .card2 is no perfectly centred (it's a bit up with respect to the middle horizontal line).

Do someone know why?**

  • This might be happening because of the margin-bottom: 2rem; that you applied to it. It looks centered to me, but if you want to fix it, you can reduce that margin a bit, like this:
    margin-bottom: 1.5em;

I have a suggestion that is good for this case:

  • Instead of using margins and paddings to space elements inside a flex container, you can add the property gap on the container. It creates a equally sized gap between the flex items inside the flex container.

I hope it helps!

Other than that, great job!

Marked as helpful

1

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