Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS margin property

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #158942
    triplebit
    Participant

    I have a theoretical question. Consider a scenario when 2 elements are located in the same div. Sometimes “margin” of the first element is measured from the nearest element edge and sometimes from the container div edge. Can someone explains this please? Regards I. Lesher

    #158947
    CrocoDillon
    Participant

    I think you should Google “margin collapsing”, and after that “block-formatting context” which affects margin collapsing.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.