No, gravity and electrostatic attraction/repulsion are both governed by inverse-square laws, so they act the same.
Also, one of Maxwell's equations (in integral form) says that the total electric field passing through a closed surface is proportional to the amount of charge within the surface. If you consider a spherical surface just inside a uniformly charged sphere, with no charge inside or outside the sphere, there can be no flux passing through this surface (since the total flux must be zero and the field is obviously symmetrical). In fact this is true for any closed surface inside such a sphere.
Also, one of Maxwell's equations (in integral form) says that the total electric field passing through a closed surface is proportional to the amount of charge within the surface. If you consider a spherical surface just inside a uniformly charged sphere, with no charge inside or outside the sphere, there can be no flux passing through this surface (since the total flux must be zero and the field is obviously symmetrical). In fact this is true for any closed surface inside such a sphere.