Johnex
06-15-2007, 03:33 PM
Hi guys.
I am having some issues trying to get 3 div rows to fill out another parent container. I want the top row to have a fixed size, as well as the bottom row. The middle row should take up all the remaining space that the parent container can supply. This is what i have come up with so far:
<div style="width: 22px; height: 600px; float: left;">
<div style="width: 17px; height: 17px; background-color: #000000;"></div>
<div style="width: 17px; height: 100%; background-color: #999999;"></div>
<div style="width: 17px; height: 22px; background-color: #000000;"></div>
</div>
<div style="width: 22px; height: 600px; background: #000000; float: left;">
</div>
I attached an image bellow showing what that does. As you can see, the left div is the one that i tried to play with, the right one is to see how big a height of 600px is. For some reason, the middle div is taking the full 600px, causing the other two divs, the fixed ones, to overflow. Is there any way that i can fix this?
Thanks in Advance.
I am having some issues trying to get 3 div rows to fill out another parent container. I want the top row to have a fixed size, as well as the bottom row. The middle row should take up all the remaining space that the parent container can supply. This is what i have come up with so far:
<div style="width: 22px; height: 600px; float: left;">
<div style="width: 17px; height: 17px; background-color: #000000;"></div>
<div style="width: 17px; height: 100%; background-color: #999999;"></div>
<div style="width: 17px; height: 22px; background-color: #000000;"></div>
</div>
<div style="width: 22px; height: 600px; background: #000000; float: left;">
</div>
I attached an image bellow showing what that does. As you can see, the left div is the one that i tried to play with, the right one is to see how big a height of 600px is. For some reason, the middle div is taking the full 600px, causing the other two divs, the fixed ones, to overflow. Is there any way that i can fix this?
Thanks in Advance.