Fluids and density

A fluid flows and takes its container's shape because its particles slide past each other, and its density, mass over volume, is the property that decides how it presses and what floats in it.

From AP Physics 1.