Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Divs inside divs


matthewamzn - 3:51 am on Sep 29, 2007 (gmt 0)


I have two divs setup in a container div. How can I adjust the container div's height based on the contents of the interior divs?

#container2 {
clear:left;
padding:5px;
}
#container2, #nav1, #search {
background-color:#b2d281;
color:#3b5d14;
font-weight:bold;
}
#nav1 {
float:left;
width:659px;
margin-left:5px;
}
#nav1 li, #nav1 ul {
display:inline;
list-style:none;
}
#search {
float:left;
width:200px;
}

--------------------------------------

<div id="container2">
<div id="nav1">
<ul>
<li>Some Navigation Stuff</li>
</ul>
</div>
<div id="search">
Search box is here.
</div>
</div>


Thread source:: http://www.webmasterworld.com/css/3464380.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com