Design comparison
Solution retrospective
This challenge is hard to complete since it involves in Java Script and positioning the elements is hard.
Community feedback
- @Orekihotarou-kPosted 7 months ago
Congratulations @Gogul11 on completing the challenge. You did well with your solution.
Here's a few things you can do to make it even better
- Center the main div vertically and horizontally. You can do so by adding these styles to the
body
which is the parent of themain
.
display: grid; align-items: center; min-height: 100dvh;
-
Use classes instead of ID's for most elements. CSS classes offer a way to efficiently manage styles and create a more modular and organized CSS code. A class can be used by many elements. Whereas an ID must be unique on a page, like a name tag.
-
For the text above the inputs, use
<label></label>
. This helps with accessibility. Screen readers need will announce the text inside of thelabel
letting the user know the input content.
Congrats again on completing the challenge. Happy coding ✨
Marked as helpful1 - Center the main div vertically and horizontally. You can do so by adding these styles to the
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