No, there is no bug. This is how things are supposed to work. And have been working for a long time now. I am very surprised you have not seen this before. Anyway, as described on the
W3C page and also in Dan's mention of
Position is Everything, floated elements do not follow the normal document flow and do not contribute to the height of their parent element. Because they are made to be able to hang over the parent element and also hang over the next element, if the floated element is long (high) enough and the next element comes before the end of the floated element -- and the next element is not clearing the float.
This effectively means that putting three floated elements in a container that has nothing but those three elements, will render that element 0 high. Because your floated elements are hanging over and don't contribute to the height of the element and there is nothing inside the element that would attribute to its height, so it remains 0. In order to cause some positive height in the box, you would need some non-floated elements. If you just put the element in, the floats will cause the element to be flush with the floated ones. This is not what you're after, so your element will have to clear the floats. As it clears the floats, the new element is positioned at the bottom of the longest float and causes the height of the parent to end at the bottom of this new element. Since element is empty, that means that the container ends at the bottom of the longest float.
Surely, the IE way is easier for an inexperienced programmer, because IE automagically helps you out. However, when you sometimes need the float to hang over and IE won't let you do that, you will be wishing nothing ever happened automagically and you had the control of what you wanted.
That said, there is a way to force FF to wrap the container around the floated elements without the added element (or content) at the bottom of the floats, albeit it sometimes causes additional problems. If you put [tt]overflow: auto;[/tt] on the parent element, it should work the same as with the clearing element.
___________________________________________________________
[small]Do something about world cancer today:
PACT[/small]