• Got a Tipila, google, windows live or facebook account ?

This is how to position one div next to another with jquery.

Note that the parent of the element which is being positioned, should have postion:relative

         $('.down-arrow').click(function (e) {
            var pos = $('#container').position(); //next to this element
            var h = $('#container').height();
            $('.to-position').css({ // this is the one that's positioned
                top: pos.top + h + 3 + "px",
                position: "absolute"
            });
            $('.to-poistion').show();               
        });
0
votes
Login to Tipila