Here is a Ken Redler solution that uses a field instead of filling (margin is outside the border, the pad is inside the border).
div.inner
{
border: 1px solid blue;
margin: 1em;
}
div.outter
{
border: 1px solid red;
margin: 1em;
display: inline-block;
}
Below is an example
source
share