My dilemma involves an HTML input field.
The input currently has padding: 5px 10px;
, but I need it to occupy 100% of its parent div's width (which is fluid).
If I try using width: 100%;
, the input ends up being wider than intended due to the padding, causing it to be 100% + 20px
. How can I resolve this issue?