3 ms·
Not sure if this is what you're referring to, but you can have a box model that includes padding and border in the width using CSS3: box-sizing: border-box
by noibl 16y ago
Not sure if this is what you're referring to, but you can have a box model that includes padding and border in the width using CSS3:
box-sizing: border-box
with -ms- (IE8), -moz- and -webkit- prefixes.
http://www.quirksmode.org/css/box.html http://www.quirksmode.org/css/box.html
- KevinMS 16y agohttp://www.w3.org/TR/css3-box/ http://www.w3.org/TR/css3-box/
- stan_rogers 16y agoRight CSS version, wrong module: http://www.w3.org/TR/css3-ui/#box-sizing http://www.w3.org/TR/css3-ui/#box-sizing The CSS3 UI module is a candidate recommendation. Setting: box-sizing: border-box; essentially puts the CSS box model render mode to where it was in IE5 (which is, frankly, the only sensible way to do it). Right now, it is available with Mozilla, Webkit and Microsoft prefixes (as are most of the UI module properties).