handle elements with floated children