4 ms·
I also have issues with the "box model." Judging by the popularity of grid layout systems like blueprint and 960 I think others also do. The box model is fine
by KevinMS 16y ago
I also have issues with the "box model." Judging by the popularity of grid layout systems like blueprint and 960 I think others also do.
The box model is fine when you just need to "flow" things around things, like text around images, and typical blog designs, but when you develop complicated interfaces it really shows its limitations and costs many hours of frustrating effort.
- noibl 16y agoNot 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).
- baddox 16y agoIsn't CSS3 supposed to fix that or at least give us another option? I should have specified that I was referring to CSS3.