What will happen if the length of the capillary tube smaller than the height to which the liquid rises?

The liquid will not over flow in the capillary. It will be full upto the top of the capillary.