Did you know…
How does gravity exist in space?
Short answer
Gravity is a property of mass itself, so it exists everywhere there is matter, including the vacuum of space. Its pull weakens with the square of the distance but never reaches zero, which is why the Moon stays with Earth, Earth stays with the Sun and the ISS keeps falling around the planet.

Mass is what makes it
Gravity is not something space contains or lacks; it is a property of matter. Every mass attracts every other mass, with a force that grows with the masses involved and falls off as the square of the distance between them. In Einstein's description the mechanism is geometry: a mass distorts spacetime around it, and other objects follow the straightest available path through that distorted geometry. Either way the conclusion is the same. Wherever there is mass there is gravity, and the vacuum between bodies does nothing to block it, because gravity needs no medium to cross interplanetary distances. The force is feeble compared with electromagnetism, but it is always attractive and never cancels out, so at planetary scale it wins.
Weaker with distance, never zero
The inverse-square law means the pull fades quickly but never switches off. A few hundred kilometres up, where the International Space Station flies, Earth's gravity is only modestly weaker than at sea level, which is exactly what holds the station in orbit. The Sun's grip reaches far past Neptune and keeps comets bound to it thousands of times further out than Earth. Between galaxies, gravity is the only fundamental force that still matters at scale.
So why does everything float?
Because the crew and the station fall together. An orbiting vehicle is in continuous free fall; nothing presses the astronaut against a floor, so there is no sensation of weight, and a dropped pen falls alongside its owner rather than towards the deck. The proper term is microgravity, not zero gravity, and the distinction is not pedantry: the residual accelerations from atmospheric drag, tidal differences across the structure and the crew pushing off the walls are precisely what sensitive experiments have to be isolated from.
More questions

Lviatour (CC BY SA), vía commons Astronauts and life in space
What did Neil Armstrong see in the Cueva de los Tayos?
An enormous cave full of life, not an extraterrestrial structure. According to an account by a caver on the team, published in 1979, Armstrong was the guest… more…
.jpg)
Astronauts and life in space
Why do astronauts grow taller in space?
In microgravity, the spine is no longer compressed by body weight: it lengthens and the back's natural curves flatten out. The crew gains a few centimeters… more…

Astronauts and life in space
How do astronauts sleep in space?
Each astronaut on the International Space Station has an individual cabin about the size of a phone booth, with a sleeping bag strapped to the floor, ceiling… more…

Astronauts and life in space
How long do astronauts sleep?
The International Space Station's schedule reserves 8.5 hours of sleep per night for each crew member. In practice, they sleep less: a study published in 2014… more…

Astronauts and life in space
How do astronauts eat in space?
Meals on board are mostly dehydrated foods rehydrated with water from a dispenser, and ready-to-eat thermostabilized dishes warmed in the galley oven, along… more…

Astronauts and life in space
How much money does Alexander Gerst have?
There is no reliable figure for Alexander Gerst's fortune; the amounts on celebrity websites are estimates without basis. What is documented is his… more…