Forums

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

Home Forums CSS Float problem (box height) Re: Float problem (box height)

#106033
Senff
Participant

I’m not entirely sure what you’re trying to accomplish (and which red part needs to expand), but your UL/LI structure is a little messed up. Some things within your main UL are not wrapped in an LI. For example, your dropdown selector is, but then it’s followed by 2 links and the subcontainer, which in turn contains LI’s but these are not wrapped in a UL.

In essence: never have anything in a UL that is not wrapped in a LI, and never have LIs that are not wrapped in a UL.

Hope that makes sense, but here’s a little cleaner code (though, again, not sure if that’s what you’re trying to do): http://codepen.io/senff/pen/2/1