Filling adds to the width of your object. One option is to remove the left / right pad from the input and just use text indentation, although this removes the correct pad.
.inside{ background: blue; border: none; padding-bottom: 10px; padding-top: 10px; text-indent: 10px; width: 100%; }
Alternatively, instead of using a fixed pixel width for your padding, you can use percentages and subtract this value from the width:
.inside{ padding: 3%; width: 94%; }
Quantastical
source share