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.
Re:Less.js will obsolete CSS
by stan_rogers on Monday June 21, 2010 @10:08AM
(#1448812)
Right CSS version, wrong module: 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).
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.