Design comparison
Solution retrospective
I need some help on how to display the "Total/ person" correctly and to use the "Reset button" to reset everything back to default.
Community feedback
- @Melchor16Posted over 1 year ago
Hey, I can't see your solution but about your questions:
for the Total /person text you can make a div with the two elements and use flexbox or you can even put all the elements of that section including the results and use css grid to align them. To reset all the values you just need to add an event listener to the "reset" button and inside that listener you just set all the element's values to an empty string, for example: document.getElementByID('bill').value = ''
Hope this is helpful for you, regards.
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