The effect of gravity depends on how heavy an object is.
How liquids can exert an upward force on an object when gravity is acting on that object