@giulialiottiSubmitted over 2 years ago
Ben
@benjbrightAll comments
- @benjbrightPosted over 2 years ago
Nice use of React, using an array to hold the tips and then mapping through it to render them was very clever!
1 - @AmohPrinceSubmitted over 2 years ago
This is an exciting app I however was not able to put the images as the placeholder for the inputs. If someone could explain that to me I would be very grateful. Cheeers!!
@benjbrightPosted over 2 years agoHey Amoh to put the images in the input boxes you insert them as background images and then position them. This is how I did it - I gave each input an id to link to in the CSS and JS.
#total-bill { background-image: url(./images/icon-dollar.svg); background-repeat: no-repeat; background-position: 5% 50%; text-align: right; }
Hope this helps, check out my solution on Github if you want to see more detail - https://github.com/benjbright/2_Tip-calculator-app
Marked as helpful1