0

Hi mates))
Please tell me - is div-block displacement by margin-top, margin-left...etc equivalent to div-block displacement by top= left= ....etc? (I mean - for relative-placed blocks)
Thanks for your answers!))

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Arkinder
1

Visually yes, but no. Margin is part of the box model, while the top and left properties interact with elements a little differently, and typically require the element to be removed from the normal flow of the page.

relative-placed blocks? Do you mean relatively positioned block level elements?


Regards, Arkinder

Votes + Comments
+++++++++
1

For example: if you positioned an element absolutely, you can either use top or margin-top . They do not stack.

Regards, Arkinder

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.