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

solution using base html/css and jquery

P

@NefariousApe

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


this was a nice challenge however positioning got in the way. whats a good way to center vertically? i want the two overlapping and i used px to get it but it leads to when on mobile it being on the bottom

Community feedback

@Joylin-Pinto

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

I have other recommendations regarding your code that I believe will be of interest to you. CSS : Looks like the component has not been centered properly. So let me explain, How you can easily center the component without using margin or padding.

To properly center the component in the page, you should use Flexbox or Grid layout.

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

This will make the components within the body center itself properly. I hope you find this helpful. The solution you submitted is great ! Happy coding!

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