Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Why does this div change height? Reply To: [Solved] Why does this div change height?

#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”.