Here's how it works:
* The Sun's Gravity: The Sun is incredibly massive and has a strong gravitational pull. This pull keeps all the planets in our solar system, including Earth, in orbit around it.
* The Moon's Gravity: The Moon is smaller than the Sun, but its gravity is still strong enough to affect Earth's oceans, causing tides.
* Earth's Gravity: Earth's gravity keeps the Moon in orbit around it, and it's also what keeps us on the ground.
So, instead of floating, the Sun and Moon are constantly in motion due to the gravitational forces between them and other celestial objects.