Forums

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

Home Forums CSS Margin's do not see floated elements

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #204601
    mkdesign82
    Participant

    hey guys
    I have a floated div elements in my form and i have another div Tag elements after the first one , the second div element is Not floated , when i actually want to set margin top to the Second div , it will not work until the margin-top touch the Top of the container ? why that ?

    #204602
    Paulie_D
    Member

    If you can provide a Codepen.io demo it would be useful but floating takes the element out of the normal document flow so the behaviour sounds correct.

    #204603
    mkdesign82
    Participant

    actually i forget to put it , and im sorry for that . my bad
    here you are this is the link

    #204604
    Paulie_D
    Member

    I confess I’m not sure what you are trying to but there doesn’t seem to be much need to float the element if it has 100% width.

    You might want to remove that.

    As I said, floating removes the document from the normal flow so perhaps here it’s not what is required.

    http://codepen.io/Paulie-D/pen/pJLgvV

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