Is it possible to position an element relative to the border-box of its parent?
问题 Consider the following jsfiddle for reference: http://jsfiddle.net/apmmw2ma/ <div class='outer'> <div class='inner'> Inner. </div> Outer. </div> div.outer { position: absolute; left: 10px; top: 10px; border: 5px solid green; padding: 10px; } div.inner { position: absolute; left: 0; top: 100%; border: 10px solid red; padding: 15px; } As you can see, the “inner” box (with the red border) is positioned relative to the outer’s padding-box : left:0 positions it just to the right of outer’s border,