Electrostatic attraction of a solid