A magnetic needle on a horizontal axis lays horizontally only at the magnetic equator, where the attraction to the poles is equally balanced.
The needle will dip to an angle which depends on the distance from the nearest magnetic pole.