Cross-browser border-box fix

Border-box not working in some old browsers such as Firefox 27. Added cross-browser support.