I have an html input.
The input has padding: 5px 10px; I want it to be 100% of the parent div\'s width(which is fluid).
padding: 5px 10px;
However using widt
widt
For me, using margin:15px;padding:10px 0 15px 23px;width:100%, the result was this:
margin:15px;padding:10px 0 15px 23px;width:100%
The solution for me was to use width:auto instead of width:100%. My new code was:
width:auto
width:100%
margin:15px;padding:10px 0 15px 23px;width:auto. Then the element aligned properly:
margin:15px;padding:10px 0 15px 23px;width:auto