Here is a cylinder with rigid walls, except for the upper face, which can go down  as it is joined to a spring which supports it. The deeper you submerge the body, the greater the force exerted on the upper face, the pressure exerted by a fluid on a surface is greater the more it is submerged.