jquery - changing z-index and get a scrollbar -


i tried lot of things, first in css jquery can't z-index correct. text should go on image on right side of , not under it. if check z-index in source it's correct still text on back.

$(document).ready(function() {      var entries = $('.entrie').length;       $('.entrie').each(function(index){         //console.log(index);         var newindex = entries-index;         console.log(newindex);         $(this).css('z-index', newindex);     });   }); 

here's jsfiddle:

http://jsfiddle.net/ejmqg/

2nd (less important), when make window small text goes under image, how can prevent this? want scrollbars when gets small.

give both elements applying z-index position:relative;. z-index doesn't work on doesn't have position.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -