html - One static height div and 2 flexible height divs inside container -
i'm creating small chat site.
<div id="container"> <div id="user"></div> <div id="chat"></div> <div id="chatform"></div> </div> what end result should this: http://jsfiddle.net/xxhtc/2/
this pretty easy when know height of user div. however, user div not have known height, expands , shrinks users log on , off.
the chatform @ bottom has known height, can set position absolute , bottom: "height of chatform div" it's height chat not overlap it.
how can set "top" value of chat relative user div expands/shrinks. don't want user div hide in chat div.
you'll need use javascript determine height of div#user , set top position of div#chat equal height.
Comments
Post a Comment