what is the relationship between distance and strength in both electric and magnetic fields?
The magnetic field direction is the same direction a compass needle points, which is tangent to the magnetic field line at any given point. The strength of the B-field is inversely proportional to the distance between field lines.