main {
padding: 12px;
width: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
height: 76%;
}
For some reason the CSS above works on Chrome, Firefox, iOS, Safari but not Internet Explorer, nor Windows Phone, Blackberry etc. The effect I was trying to achieve is to give a little offset between the edge of the page and the div. I'm using padding instead of margin so I can use box-sizing to eliminate the problem of the div overflowing.
Any ideas why?
Example: