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 using html, css and javascript

faekhatami 540

@faekhatami

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

@Ibtehaj-Ali-1

Posted

It is looking great and working well!! It would help if you worked on Gradients and Flex and Grid properties. You can use Flexbox to center your container:

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

Or You can use Grid!

Marked as helpful

2

faekhatami 540

@faekhatami

Posted

oh i had forgotten how to do it! thank you for reminding me 🙏🏻🌼 @Ibtehaj-Ali-1

1

@nkshey

Posted

You can easily center the component by giving the body these three styles:

body {
   display: grid;
   place-items: center;
   height: 100dvh;
}

Marked as helpful

2

faekhatami 540

@faekhatami

Posted

thank you for your comment i had forgotten how to do it! 🙏🏻🌸@nkshey

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