I would recommend generally trying to use margin
and padding
for small adjustments to element positioning.
top
, bottom
, left
, and right
require a unit of measurement (like px) and are designed to work with the position
property. Using these methods can create other problems (like reading order not matching DOM order or issues on mobile/responsive sites), and as such they should be used only when genuinely needed.
solved how do I move up a division a little