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

AMKβ€’ 140

@ahmed322

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Panjiβ€’ 2,110

@pperdana

Posted

Hi, Well done on completing the challenge! πŸ‘

  • I have more suggestions regarding your code that I believe will be highly beneficial for you.

πŸ”Ž Center an element both horizontally and vertically

Using flexbox:

Set the display property of the parent element to "flex" and use the "justify-content" and "align-items" properties to center the child element both horizontally and vertically. For example:

.parent {
  display: flex;
  justify-content: center;
  align-items: center;
}

.child {
  /* other styles for the child element */
}

I hope this information was beneficial for you! 😊

Happy codingπŸ€–

Marked as helpful

1

AMKβ€’ 140

@ahmed322

Posted

@Panji200

Thank you that's really helpful

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