Question: An excerpt from [this](http://www.chem4kids.com/files/matter_gas.html) page:

> 
> Gases can fill a container of any size or shape. It doesn't even matter how big the container is. The molecules still spread out to fill the whole space equally. That is one of their physical characteristics. 
> 
> 
> 

If a fixed quantity of gas is let out in a limited space, will it spread out equally and maintain a fixed gas distribution throughout the space?

Or, does it go where the gravitational pull is maximum? And what factors affect the distribution of gas in a given area?

Answer: 
Of course gravity affects distribution.

That is why we have 'layers' of atmosphere surrounding the earth. The lower layers are very dense, and the density decreases as we go outwards, to zero in space. 

When a limited amount of gas is released in a containter, it will fill up the space *almost* equally; the lower regions will be slightly denser (depends on how much gas is present and how tall the container is). If the container's height is comparable to the radius of the earth, then because of the mere weight of the gases on top, we'd have more pressure at the bottom - which is literally what's happened in the atmosphere! In the case of small containers - yes, even a ship could be considered small - the effect would be negligible, but in theory, the lower portions WOULD be denser, even by a really tiny amount. 

Evem if you were to do it in space, the container in which you performed the experiment has mass, and subsequently its own gravitational field - and this would affect the distribution too. 

However, if you completely remove gravity, then - yes, gas spreads out exactly evenly everwhere. 

---

You've quoted from a kids' chemistry site. They obviously won't get into the depths of it - it's just basics, perhaps that's why they haven't mentioned it. See, they even mentioned that vapour and gases mean the same thing - although there is a difference. Vapour is definitely a gas and in the gaseous state, but not all gas is vapour!!! ;)

$P.S$: I finished + posted this answer more than 2 hours ago :/ Unfortunately my stupid internet connection conked off and it didn't post it until now, when I got connectivity again.
Well we know from experience that gas will eventually cluster together and form gravitational wells. Just looking at the sky shows proof of this (in the form of stars)\*.

Yet that site is still a common description of gasses. How can this be? The difference stems from the model used.  

The site talks about statistical/classical thermodynamics: It describes an ideal gas; a gas that to consist of hard particles which do not influence each other in any shape. So in this model there simply can't be any "gravitational" effect. Gravity is an effect where the molecules do react on each other, and as such the substance can no longer be described using the equations for an ideal gas

Now to describe this (and other) effects there are a lot of other models. However you should understand that for a lot of applications the classical thermodynamic laws are still valid (within error bounds).

\*The exact effect of formation of stars is something non trivial though, simple Newtonian mechanics/gravity is too limited to describe this. This is an active field of study.