0

I have a div in my layout which has box-sizing property assigned to it with value border-box. It works good in other browsers but does not work in IE7. I have read that for fixed width elements, it works. The IE developer tool tells that box-sizing property is assigned correctly. The CSS code:

.item {
    width:360px;
    background:#FFFFFF;
    border:0;
    border-bottom:1px solid #DDDDDD;
    padding:12px 24px;
    margin-bottom:24px;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}

It breaks the layout.

1 Answers1

0

Unfortunately IE7 doesn't support box-model: border-box and uses the W3C content box model instead. There are a couple of options here - use a polyfil or write specific IE7 rules in a conditional comment.

David Randall
  • 770
  • 3
  • 9