javascript - Two div overlapping with variable height = without height on container -
it quite easy make 2 div overlap when size of container div known if div heigh cannot ?
i tried without manipulating container height: http://jsfiddle.net/ajfav/ #text2
go on #text3
, not "push" it. how can #container
resized automatically ?
i manage achieve goal using jquery ui feel not elegant solution: http://jsfiddle.net/ajfav/6/
is need?
i'm setting height
default, auto
, using jquery, this:
$("#container").css("height", "auto");
you can set: height: auto;
in css.
Comments
Post a Comment