When the magma is forced in the upward direction, it fills the cracks and fissures in the existing rocks. It solidifies in these cracks forming dykes. Dykes are often vertical or slanting in position and are often an offshoot of rock.
Also, Read What are Batholiths?