Derived from an actual problem with borders and margin on my site I have made this test example which I think acts a little strange:
Because margins are evil (and tend to collapse -> is it a bug? margins of P element go outside the containig div). In your case you can simply add overflow:hidden; to .outer
overflow:hidden;
.outer
http://jsfiddle.net/yhAaQ/