Astronauts in orbit are still strongly attracted to the Earth by gravity. So why do they float about as if they were in deep space, far from any big masses?
Here is a nice simple blog post which gets across the basics. For a more general/detailed explanation…I have tutorial sheets available!