What is the difference between top and margin top?
The top attribute basically defines the y-position from the top of the browser, but also depends on what is defined in the position attribute as well.
The margin-top specifies the element's top gap from another element.