<div class="out">
<div class="inner"></div>
</div>
In the above code, out div must be set with:
padding:0;
margin:0;
Then I want the inner div take all the place of the out with a certain margin.
In the exmaple,I position the inner div with top,bottom,left,right attributes,however it is not supported in ie6.
How to make it work cross-browser?
BTW,I do not want to use the absolute size like
height:1px
width:1px;
Is changing
out‘s padding definitely not allowed? It would be very easy if you can: http://jsfiddle.net/rrMjj/2/