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

RATING COMPONENT USING PURE HTML CSS AND JS

rahulmishra2370โ€ข 90

@rahulmishra2370

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

Alberto Ledesmaโ€ข 370

@ledesmx

Posted

Hi @RAHUL-19OOPS ๐Ÿ‘‹

Great job on your solution!

Here are some recommendations for you:

  • I suggest adding a max-width property in the card to prevent stretching. This sets the maximum width on an element.
  • Also add the radial-gradient() function in the card's background property to achieve that gradient background. Check out the MDN Web Docs to see how it works: https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/radial-gradient

Code to add:

.main-container, .thank-you {
  background: radial-gradient(ellipse at top, hsl(213, 20%, 22%), hsl(212, 28%, 12%));
  max-width: 400px; /*Here you add the width you want*/
}

I hope this helps a little.

Well done for the rest.

Marked as 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