Alain
Alain

Reputation: 27250

Div height is adjusting to height of child div when child div is floating left, but not when it's floating right

I'm working on my sister's website.

I have a problem with the DIV height not adjusting to 100% of the hight of all its child elements. What's weird is that for the child div in question, if I set the float to left, the height adjusts fine, but when it's floating right the containing div comes up short.

Site: http://www.lindsaybryden.com/

Floating Right: enter image description here

Floating Left: enter image description here

How can I get the height adjusting properly while floating the child div right?

Upvotes: 0

Views: 74

Answers (1)

mrtsherman
mrtsherman

Reputation: 39902

You are clearing only the left float, not the right float. Try adding

<br style="clear: both;" /> 

just before the close of divContainer.

Upvotes: 2

Related Questions