Answer the question
In order to leave comments, you need to log in
div position:absolute overlaps adjacent div position:relative
there is:
<style>
.item{position:relative; float: left; }
.tools{position:absolute;}
</style>
<div>
<div class="item">aa<div class="tools">22</div></div>
<div class="item">as<div class="tools">33</div></div>
<div class="item">asd<div class="tools">44</div></div>
<div class="item">asd<div class="tools">55</div></div>
<div class="item">asd<div class="tools">66</div></div>
</div>
Answer the question
In order to leave comments, you need to log in
Or put them in reverse order and put float:right on the item and float:left on the container.
jsfiddle.net/6RAK8/2/
Or put z-indexes on item in descending order.
jsfiddle.net/6RAK8/3/
thanks, it worked. however, the question arose, why if so jsfiddle.net/dmwaB/ does not plow, although the z-index for item is less?
theory please)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question