Home › Forums › CSS › Float problem (box height) › Re: Float problem (box height)
July 13, 2012 at 8:15 am #106033
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