CSS and DIV with dynamic height

hayalet_kral

New Member
I've got a webpage structure like this one:\[code\]<div class="total"> <div class="menu"> </div> <div class="content"> </div></div>\[/code\]So the "menu" div contains my left menu, and th "content" div contains some dynamic text. Actually the structure I've made positioned both in the correct way, inside my "total" div. I've actually edited my "total" div on my CSS like this:\[code\].total{position:relative;top:50px;margin: 0 auto;background-color:#eeeeee;height:auto;border:2px solid #000;border-color:rgb(82,115,154);}\[/code\]The problem is that I can't obtain what I actually want: the border is all on the top (it's like an horizontal row) and my div with a different background color do not appear.How can I make the "total" div's height dynamic? EDIT: Link to jsFiddle
 
Back
Top