Responsive tip calculator using CSS flexbox

Solution retrospective
Any tips or suggestions highly appreciated.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @molszewski34
Hey. Calculation part works but there are few issues you should work with.
- Output should show .toFixed(2). This is required to show proper amount of currency. Right now when user provide 100$ for 3 persons it shows 33.333333.
- Reset button should show active status when user use number input and be disabled after use of reset function.
- Alert must be shown for person input and has red border when condition is false. 4.There are problems with responsiveness. Some elements as reset btn and output move out of fields and tip amount is not shown on lower resolutions. Especialy with big output. Fixing issue number 1 should also fix some of problems.
- It is ok to start function by clicking option button but its better to start it with one of inputs - person field or bill.
Checked on firefox and chrome.
Marked as helpful - @whoiskekeanyway
Very good work here. there is a bug with the total amount per person. it displays the total amount of the bill not for each person, also center your main content on the laptop view.
Marked as helpful - @molszewski34
Yes. I see that span when in position: absolute moves over input and block it.
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