Interactive Rating Component using CSS and JavaScript
Design comparison
Community feedback
- @godmayhem7Posted about 2 years ago
hey your code is absolutely amazing here are some tips to better your code inorder to perfectly center the content of your body tag try using this code
body{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}
the rest is perfectπππ
hope this helps πMarked as helpful2 - @MasonBoomPosted about 2 years ago
Hey, good job on the project but there is just one thing I wanted to point out is that on desktop, the rating component floats pretty close to the top of the screen when it should be in the center. i see that you did
margin: auto;
in your css but sometimes auto doesn't do the vertical margins correctly. Try something likemargin: 30vh auto
(vh units are based on screen size)Marked as helpful1
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