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

Tips Calculator

@Gogul 220

@Gogul11

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What challenges did you encounter, and how did you overcome them?

This challenge is hard to complete since it involves in Java Script and positioning the elements is hard.

Community feedback

Levis Kim 1,180

@Orekihotarou-k

Posted

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 the main.
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 the label letting the user know the input content.

Congrats again on completing the challenge. Happy coding ✨

Marked as helpful

1

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