• 4thchicken

    (@4thchicken)


    I’m having troubles getting my footer to stay in the one spot – I changed the margins so that it displays properly on a smaller screen though whenever I go to full screen the footer moves all the way to the left.

    From my stylesheet

    #footer {
    margin-top: 00px;
    text-align: center;
    background: #ffffff;
    width: 760px;
    position: relative;
    border: none;
    margin: 0 0 0 250px;
    }

    What am I doing wrong?

Viewing 1 replies (of 1 total)
  • Bodhipaksa

    (@haecceity)

    I’m not a css expert, but try margin: 0 auto; instead of margin: 0 0 0 250px;

    setting the left and right margins to auto is a way of centering a div.

Viewing 1 replies (of 1 total)
  • The topic ‘footer moves with page resize’ is closed to new replies.