Submitted about 2 years ago
Responsive Tip Calculator App using CSS grid and flexbox
@emanuelmarques45
Design comparison
SolutionDesign
Solution retrospective
I had struggles to when the user types "0", the JavaScript sets the input as invalid, so the span.invalid can appear on the screen by the css input:invalid... I had to set the span.invalid display to block by JS. And I'm sure if the three event listeners of the inputs have to call the calculateTip() function
Community feedback
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