Cross-browser box-sizing CSS code

This is a quick reminder for cross-browser box-sizing CSS code…

textarea {
 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
 box-sizing: border-box; /* Opera/IE 8+ */

Simply copy and paste the box-sizing CSS code above to the element you require to be box-sized.

You can use it on divs, forms, span, p, blockquote etc…

IT Support Newcastle is brought to you by Transcendit Ltd, contact us on 0191 482 0444