Tip calculator App built with html, css and vanilla Javascript
Design comparison
Solution retrospective
Hey guys, this is my first vanilla Js project, to be honest it was abit challenging, I have did my best to implement most of the features, kindly I need your insights on how to improve.
Community feedback
- Account deleted
Hi,
You should use flex-box on the body to center everything, because it's currently not centered vertically;
body { display: flex; flex-direction: column; min-height:100vw; justify-content: center; align-items: center; }
^^^ I added that and it worked just fine.
- I don't think I should be able to enter a negative number on the bill, so you should put some restrictions into it, and for some reason I can also type an 'e', which I don't think should be happening.
Marked as helpful0@DiuGachPosted about 3 years ago@thulanigamtee Alright thanks so much, I'll do that restrictions coz it doesn't make sense to type negative num or a string, I will also center it, huge thanks.
0
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