Hacker News new | ask | show | jobs
by yogo 4593 days ago
Border box is also a godsend when dealing with nicely laid out form inputs because unlike elements like divs you can't get away with nesting child elements to get the desired effect, and you typically have borders on those fields. Need a textarea to fill a certain space? Set it to 100% and forget it.
1 comments

From my understanding most browser use border-box on form elements by default anyway. That's why they often look different from other elements with the same styling.
I don't think so. There are endless blog articles online that have addressed this, e.g. http://davidwalsh.name/textarea-width
I was going by this, http://www.paulirish.com/wp-content/uploads/2011/gplus-boxsi..., which I believe doesn't include textarea as one of the elements involved.