Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 2
    This has got to be one of the coolest things I have found in a while. Thank you, any chance there is a way to do this in IE7 as well? Commented Mar 19, 2012 at 16:11
  • 60
    Note that you'll still want to use width:100% in conjunction with the border-box. Commented Jun 6, 2012 at 20:56
  • 3
    Doesn't old versions of Internet Explorer use border-box behavior only? Commented Apr 1, 2013 at 18:05
  • 6
    can someone explain this please, where does this class go? a div surrounding the textarea? Commented Aug 11, 2016 at 21:25
  • 2
    This is fantastic... even after all these years, still learn something new every day. @koolaang this is basically saying the object's size shouldn't factor in padding, so in theory you can apply this style right to the textarea itself. Commented Aug 25, 2016 at 17:33