Last Thursday I had the pleasure of doing an hourlong callin show on Wisconsin Public Radio with Kathleen Dunn. It was a lot of fun  a bunch of good questions! One of the questions was, "How does gravity work?" Here is a complete treatment because it has not been covered on HSW before...
There are two forces in nature that we experience every day: gravity and magnetism. You probably have magnets on your refrigerator, and you know that a magnet will attract a refrigerator with a certain amount of force. The force depends on the strength of the magnet and the distance between the magnet and the metal. You also know that magnets have two poles  North and South. Either pole will attract iron or steel equally well and North will attract South, but like poles repel one another.
Gravity is the other common force. Newton was the first person to study it seriously, and he came up with the law of universal gravitation:
Each particle of matter attracts every other particle with a force which is directly proportional to the product of their masses and inversely proportional to the square of the distance between them.
The standard formula for gravity is:
gravitational force = (G * m1 * m2) / (d^2)
Where G is the gravitational constant, m1 and m2 are the masses of the two objects for which you are calculating the force and d is the distance between the centers of gravity of the two masses ("^2" means "squared").
G has the value of 6.67 x 10E8 dyne * cm^2 / gm^2. That means that if you put two onegram objects one centimeter apart from one another, they will attract each other with the force of 6.67 x 10E8 dyne. A dyne is equal to about 0.001 gram weight, meaning that if you have a dyne of force available it can lift 0.001 grams in earth's gravitational field. So 6.67 x 10E8 dyne is a miniscule force. When you deal with massive bodies like the earth, however, which has a mass of 6E+24 kilograms (see Question 30), it adds up to a rather powerful force. It is also interesting to think about the fact that every atom attracts every other atom in the universe in some small way!
Einstein later came along and redefined gravity, so there are now two models  Newtonian and Einsteinian. Einsteinian gravitational theory has features that allow it to predict the motion of light around very massive objects and several other interesting phenomena. According to Encyclopedia Britannica:
The general theory of relativity addresses the problem of gravity and that of nonuniform, or accelerated, motion. In
one of his famous thoughtexperiments, Einstein showed that it is not possible to distinguish between an inertial frame of
reference in a gravitational field and an accelerated frame of reference. That is, an observer in a closed space capsule who
found himself pressing down on his seat could not tell whether he and the capsule were at rest in a gravitational field, or whether
he and the capsule were undergoing acceleration. From this principle of equivalence, Einstein moved to a geometric
interpretation of gravitation. The presence of mass or concentrated energy causes a local curvature in the spacetime continuum.
This curvature is such that the inertial paths of bodies are no longer straight lines but some form of curved (orbital) path, and this
acceleration is what is called gravitation.
If certain assumptions and simplifications are made, Einstein's equations handle Newtonian gravity as a subset.
The question of why atoms attract one another is still not understood. The goal is to combine gravity, electromagnetism and strong and weak nuclear forces into a single unified theory. The following paragraph from this page shows that if it ever gets figured out, it may not be simple:
How to incorporate the gravitational force into this standard model is not clear at present. Gravity is certainly not mediated by a vector boson. A selfconsistent quantum theory of the gravitational field based on a massless tensor boson (with twice the spin of a vector boson), as suggested by Einstein's theory of General Relativity, has never been constructed. A presently popular conjecture is, that gravitational force is part of a much larger class of phenomena, maybe mediated by stringlike quanta rather than pointlike ones. However, the mathematics of quantum string theory is not yet fully understood; this is an active area of theoretical research.
Here are several interesting links:
