Submitted about 1 year ago
RATING COMPONENT USING PURE HTML CSS AND JS
@rahulmishra2370
Design comparison
SolutionDesign
Community feedback
- @ledesmxPosted about 1 year ago
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 helpful0 - I suggest adding a
Please log in to post a comment
Log in with GitHubJoin 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