Submitted 3 months ago
Interactive Rating Component using html, css and javascript
@faekhatami
Design comparison
SolutionDesign
Community feedback
- @Ibtehaj-Ali-1Posted 3 months ago
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 helpful2@faekhatamiPosted 3 months agooh i had forgotten how to do it! thank you for reminding me 🙏🏻🌼 @Ibtehaj-Ali-1
1 - @nksheyPosted 3 months ago
You can easily center the component by giving the body these three styles:
body { display: grid; place-items: center; min-height: 100dvh; }
Marked as helpful2@faekhatamiPosted 3 months agothank you for your comment i had forgotten how to do it! 🙏🏻🌸@nkshey
1
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