suppose i have one big div with height & width like 300 px and i want to generate another small div dynamically whose height & width would be 50px and pushed in the big div and position at the bottom center of big div.....how to achieve it by jquery. please
help with sample code.
mou_inn
Participant
780 Points
955 Posts
how toosition small div on another big div
Apr 09, 2012 05:49 PM|LINK
suppose i have one big div with height & width like 300 px and i want to generate another small div dynamically whose height & width would be 50px and pushed in the big div and position at the bottom center of big div.....how to achieve it by jquery. please help with sample code.
Mauro_net
Contributor
2114 Points
402 Posts
Re: how toosition small div on another big div
Apr 09, 2012 06:47 PM|LINK
you can use append() jquery function to make the smaller div a "child" of the first one
http://api.jquery.com/append/
http://stackoverflow.com/questions/4482850/how-to-append-div-with-divs-inside-using-jquery
http://stackoverflow.com/questions/7911916/jquery-append-div-inside-div-with-id-and-manipulate