element with width 100% and padding
<p>how can you make an element with width 100% and padding fit inside another element without changing the width of the parent?</p>

<pre><code>var inp = $('&lt;input type="text" style="padding:4px; width:100%" /&gt;')
      .appendTo('&lt;div style="width:200px"&gt;&lt;/div&gt;');
</code></pre>
