Skip to content

Commit

Permalink
removing jsfiddle link as it is unnecessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
nimbupani committed Nov 24, 2012
1 parent 1cb8f7a commit 64e517d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions posts/box-sizing.md
Expand Up @@ -6,9 +6,7 @@ polyfillurls:

Supported in Chrome, IE8+, Opera, Safari 5.1+. The <a href="http://paulirish.com/2012/box-sizing-border-box-ftw/">recommended pattern</a> is `box-sizing : border-box;`, preceded by the fallbacks `-webkit-box-sizing: border-box;` for old IOS<=4 and Android<=2.3, and `-moz-box-sizing: border-box;` for firefox. You can apply it to all (`*`) elements if you like.

IE8 does not support `box-sizing: border-box;` with `min-width`/`max-width` and `min-height`/`max-height` as you can see <a href="http://jsfiddle.net/beau/SCUED/">in this fiddle</a>.

For IE6/7 you can optionally use the [box-sizing polyfill](https://github.com/Schepp/box-sizing-polyfill) to provide this feature in IE 6/7 (you could scope the adjustments using [IE conditionals](http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/) or Modernizr's <a href="http://www.modernizr.com/download/#-cssclasses-addtest-css_boxsizing">`no-box-sizing`</a>).
IE8 does not support `box-sizing: border-box;` with `min-width`/`max-width` and `min-height`/`max-height`. For IE6/7 you can optionally use the [box-sizing polyfill](https://github.com/Schepp/box-sizing-polyfill) to provide this feature in IE 6/7 (you could scope the adjustments using [IE conditionals](http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/) or Modernizr's <a href="http://www.modernizr.com/download/#-cssclasses-addtest-css_boxsizing">`no-box-sizing`</a>).

Besides the prefix, there were box sizing issues in Gecko/Firefox, see <a href="https://developer.mozilla.org/En/CSS/Box-sizing#Notes">notes at MDN</a>. For versions of Firefox before 17 min-height/max-height does not work.

0 comments on commit 64e517d

Please sign in to comment.