mlecho
12-18-2007, 12:29 PM
just need a little help formating this correctly. In essence, i have a wrapper div that has 2 divs (id="left" , id="right") inside. The left right divs are aliged horizonataly, acting as columns (both with a set width to achieve the effect). the issue i am having is if the left or right div have large amounts of text, the wrapper div will not extend with the height of these inner divs. I am expecting to see the wrapper extend vertiacally with it's inner divs...why is this not the case, and what should i be looking for?
<html>
<head>
<title></title>
</head>
<body>
<div id="content">
<div id="content_wrapper">
<div id="left">
<div id="text_box">
<div id="title_bar"><img src="imgs/titlebar/title_wine.gif" ></div>
<p>large amounts of text...</p>
<p>more amounts of text...</p>
<p>last amounts of long tesxt text...</p>
<div id="wine_form">
</div>
</div>
</div>
<div id="right">
<div id="img_holder"><img src="imgs/main/main_wine.jpg"></div>
</div>
</div>
</div>
</body>
</html>
/* CONTENT WRAPPER */
/* CONTENT LEFT */
#fade{width: 941px; height: 280px;background: url(../imgs/bg_fade.png) no-repeat;}
#content{background: url(../imgs/bg_filler.png) repeat-y;width: 941px; margin-bottom: -5px;}
#content #content_wrapper{width: 939px;position: relative;top: -209px;min-height: 150px;}
div#title_bar{width: 516px;height: 55px;}
#content div#left{float: left;width:485px;}
#content div#text_box{position: relative;top: -60px;width: 450px;min-height: 300px;}
#content div#text_box p{padding-left: 2em;}
/* CONTENT RIGHT- IMAGE and CAPTIONS*/
#content div#right{float: left;width: 399px;height: 280px;position: relative;right: -25px;top: -47px;}
<html>
<head>
<title></title>
</head>
<body>
<div id="content">
<div id="content_wrapper">
<div id="left">
<div id="text_box">
<div id="title_bar"><img src="imgs/titlebar/title_wine.gif" ></div>
<p>large amounts of text...</p>
<p>more amounts of text...</p>
<p>last amounts of long tesxt text...</p>
<div id="wine_form">
</div>
</div>
</div>
<div id="right">
<div id="img_holder"><img src="imgs/main/main_wine.jpg"></div>
</div>
</div>
</div>
</body>
</html>
/* CONTENT WRAPPER */
/* CONTENT LEFT */
#fade{width: 941px; height: 280px;background: url(../imgs/bg_fade.png) no-repeat;}
#content{background: url(../imgs/bg_filler.png) repeat-y;width: 941px; margin-bottom: -5px;}
#content #content_wrapper{width: 939px;position: relative;top: -209px;min-height: 150px;}
div#title_bar{width: 516px;height: 55px;}
#content div#left{float: left;width:485px;}
#content div#text_box{position: relative;top: -60px;width: 450px;min-height: 300px;}
#content div#text_box p{padding-left: 2em;}
/* CONTENT RIGHT- IMAGE and CAPTIONS*/
#content div#right{float: left;width: 399px;height: 280px;position: relative;right: -25px;top: -47px;}