How to stick footer to bottom (not fixed) even with scrolling

前端 未结 9 1023
温柔的废话
温柔的废话 2021-02-03 20:53

I\'m learning web development and I simply can\'t figure out what I\'m doing wrong on this. I want the footer of this page to stick to the bottom, below all content, but not fix

9条回答
  •  囚心锁ツ
    2021-02-03 21:26

    Try this:

    css:

    #footer
    {
        position: relative;
        background-size: cover;
        background-position: 50% 50%;
        background-color: #ffab62;
    }
    

    html:

    
    
    
    
    
    
    
    
    

提交回复
热议问题