Results 1 to 11 of 11
Sep 13, 2007, 20:48 #1
- Join Date
- Dec 2003
- 29 Post(s)
- 0 Thread(s)
Get a div to watch something float
Basically, I have a <div> and then have floating <divs> inside. One of those floating <div>s I want to have a variable size, and I want the div that contains it to grow accordingly. However, since the div is floating, it won't.
How can I correct this situation?
Here is a quick view of the core pieces of this code:
<div id="main"> <div id="header"></div> <div id="menu" class="float_left"></div> <div id="content_area" class="float_right"> <div id="inner_content_area" class="float_left"> <div id="content"></div> <div id="footer"></div> </div> <div id="ronin" class="float_right"></div> </div>
The core of this question is basically "can I make something floating affect the size of it's parent"?
I know I could redo my CSS to use positioning elements instead of making it float, which I may have to do.
Thanks.Xazure.Net - My Blog - About Programming and Web Development
Follow Me on Twitter!