Swan-Yee-Tun• 225
@developedBySwan
Posted
You need one parent element to add the icon. And then change the background color of parent element same with input box. This is my code. I hope this will help you.
<div class="input-box"> <span> <img src="./images/icon-dollar.svg" alt="dollar-sign"> </span> <input type="number" class="input-dollar-number" id="input-dollar-number"></div>
1