There is a list with li elements. Each element is located to the left by 5px than the previous one. Made a trivial indication of the offset for each item. But is it possible to somehow bypass this and make a loop so that each element is to the left by 5px than the previous one? I am not familiar with jquery, but out of fantasy I sketched code like this (non-working):
$('.li-class').css("margin-left",function(i,value){ for (i=1, i<li:last-child,i++){ return margin-left(value) -=5px; } }); Is it possible to do this using a cycle and by what means?