The box-sizing CSS3 property can do just this. The border-box value (as opposed to the content-box default) makes the final rendered box the declared width, and any border and padding cut inside the box.
CSS Used - Chrome Web Store - 0 views
Box Sizing | CSS-Tricks - 0 views
-
-
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box; /* Opera/IE 8+ */
Box Sizing | CSS-Tricks - 0 views
-
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box; /* Opera/IE 8+ */
A New Face - 0 views
HTML5 for Windows XP - 5 views
‹ Previous
21 - 26 of 26
Showing 20▼ items per page