3 ms·
At this point the W3C is in fact working on providing such a thing. "width: calc(50% - 20px)". Works in Firefox and IE. At some point WebKit will catch up, I
by bzbarsky 15y ago
At this point the W3C is in fact working on providing such a thing. "width: calc(50% - 20px)".
Works in Firefox and IE. At some point WebKit will catch up, I assume.
- kbolino 15y agoI'm glad to hear that, but it's long overdue and the border-box model already solves the same problem with less markup (and most importantly, without creating an implicit dependency between the padding and width styles).
- bzbarsky 15y agoWell, in all fairness calc() lets you solve a bunch of problems that border-box can't solve.