There's no gravity in space. This may be the common notion, but there's actually a small amount of gravity everywhere in space. It's what keeps the moon and Earth in orbit, but it's not the reason things float in a spacecraft. Astronauts float because they're in free fall. Image Source: Unsplash / NASA