Magnetic properties of an element are not due to rotation of electrons. Magnetism is created by the spin of electrons. When electrons are paired in atomic orbitals, there spin cancel out each other. But spin of an unpaired electron creates a slight magnetic field. More is the number of unpaired electrons, more is the magnetism. Thus, elements with unpaired electrons show magnetism.