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!))

Recommended Answers

All 4 Replies

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

commented: +++++++++ +1

Do you mean relatively positioned block level elements?

yes)

What the difference between them respect to normal flow?))

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

Regards, Arkinder

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.