javascript - How to place a div inside a bigger scrollable div at particular position -


i have div height = 10*screen-height.

i want add smaller div height = screen height

assuming can add 10 such smaller div's onto bigger div, want add div @ particular position on bigger div. starting 4*screenheight pixel. how do using jquery?

presumably have screen height stored, , 2 divs created @ correct heights, so:

$(inner_div).css('position', 'relative').css('top', 4*screen_height); 

you may not need position:relative in style if it's in css already


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -