title: Problem with <input type='text' /> and <textarea> width
body: <p>In the following code, both the INPUT and TEXTAREA elements render wider than they should.  How can I limit them to 100% of the usable area within the div?</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  &lt;head&gt;
      &lt;style&gt;
         .mywidth{ width:100%; }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div style="border: 3px solid green; width: 100px;"&gt;
          &lt;input class="mywidth" &gt;&lt;br /&gt;
          &lt;textarea class="mywidth"&gt;&lt;/textarea&gt;&lt;br /&gt;
          &lt;div style="background-color: yellow;" class="mywidth"&gt;test&lt;/div&gt;
       &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Note: If I remove the DOCTYPE, it renders as expected, with the INPUT, TEXTAREA and inner DIV all the same width and not going outside the containing DIV.</p>
  
  <p>Update:  Not withstanding the default borders on those elements, it still appears to render incorrectly in <strong>IE7</strong>.</p>