I have a div whose width is 100%. I know I can use box-sizing (or -moz-box-sizing) set to border-box to get that div's total width, including borders and padding (but not margin) to be that computed 100%. Is there a way to include the margin in that relative size computation as well?
Alternately, it would be great if there was a non-Javascript way to specify a combination of relative and absolute dimensions in a width, e.g.:
#my-div {
width: 100% - 10px;
}
Can either of these be done?