What about using position: relative
for external divs? In the example of hiding the inner div. Since top or left are not specified, it will not move within the layout.
Set the outer <div>
to position: relative
and the inner <div>
to position: absolute
. This should work for you.