Capillarity, rise or depression of a liquid in a small passage such as a tube of small cross-sectional area, like the spaces between the fibres of a towel or the openings in a porous material. Capillarity is not limited to the vertical direction. Water is drawn into the fibres of a towel, no matter how the towel is oriented.
Capillarity is the result of surface, or interfacial, forces. The rise of water in a thin tube inserted in water is caused by forces of attraction between the molecules of water and the glass walls and among the molecules of water themselves. These attractive forces just balance the force of gravity of the column of water that has risen to a characteristic height. The narrower the bore of the capillary tube, the higher the water rises. Mercury, conversely, is depressed to a greater degree, the narrower the bore.