Hello,
The earth's body pulls all bodies on it equally with an acceleration of about 9.8m/s^2.
Now, there is a "gravitational force" acting between TWO bodies, whose formula goes
F = G m1 m2 / r^2
where F is the gravitational force, m1 and m2 are the masses concerned, and r^2 is the square of distance between them. G is the universal gravitational constant.
For calculating the force due to gravity, if m1 is the mass of the body (SOLID or LIQUID) and m2 is that of the earth, then the more the MASS (m1) of the body, the more the force of gravity.
By this logic, a substance which is HEAVIER (having more mass) and having a lesser distance of separation is attracted more strongly.
So depending on the mass, a solid or liquid (whichever weighs more) will experience a corresponding effect of gravity.
Hope it helped! Gud Luck!