Forum Moderators: not2easy
I'm working on a site at the moment (www.160676.net) where two divs are floated within another one.
If you view the site (well, what's there at the moment) you can see that the two floating divs work ok. However, in Firefox, the outer div doesn't stretch to encompass the other two.
Can anyone point out what I've done wrong. I'm sure it's something real simple.
Thanks
RB
What I mean is, say you have a box (div) and set borders on it. Then, you "float" two boxes (divs) above it, the borders on the bottom box won't affect the floating boxes because they're 'above' it.
(At least that's how I think it works :)
[edited by: Stormfx at 8:47 pm (utc) on May 6, 2005]
Below the two floating divs, I have <div style="clear:both;"></div> but it doesn't seem to change it.
I tried giving the container div, "main" a speficic height (e.g. 100px) and it appeared to hold the floating divs as I wanted but don't want to have to specify a specific height.
I think I'm still stuck here...
#main {
background-color:#ffffff;
border-bottom:1px solid #E6E6E6;
border-left:0px solid #E6E6E6;
border-right:0px solid #E6E6E6;
border-top:0
margin-left:8px;
width:602px;
background-image: url(_img/body-bg.gif);
background-repeat: repeat-y;
background-position: right top;
}