check if element is floating.