html - fixed position div below relative position -
there many questions on stackoverflow, of ones checked asked exact opposite of question.
have fixed position div , relatively positioned span:
<div class="head-wrap"> ... </div> .... <span class="img-desc" id="main">html lesson - part 1</span>
css:
.img-desc { position:relative; background:rgba(5,1,20,.8); color:yellow; padding:15px; } #main { top:-150px; left:8px; font-size:2.4em; z-index:2 !important; } .head-wrap { z-index:50; }
from have read, fixed-position div supposed pass on relative-positioned span. doesn't! how can make div pass on span, instead of other way around. fiddle.
Comments
Post a Comment