Home › Forums › CSS › [Solved] Why does this div change height? › Reply To: [Solved] Why does this div change height?
December 31, 2014 at 8:56 am
#191955
Senff
Participant
On screens larger than 992 pixels, the contents of .open-blurb
are floating, and then you get a situation where the container is not being cleared.
(If a parent container contains child elements that float, then the parent will not take up the children’s total heights.)
To resolve this, you could give .open-blurb
an additional overflow:hidden;
or give it float;left
.
To read more about the theory behind it, do a Google search for “clearing floats css”.