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?

updated fiddle:

i'm setting height default, auto, using jquery, this:

$("#container").css("height", "auto"); 

you can set: height: auto; in css.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -