The individual floats rise or fall in proportion to their respective density and the density of the surrounding liquid as the temperature changes.
eBay