How can I force my footer to stick to the bottom of any page in CSS?

前端 未结 10 1038
谎友^
谎友^ 2020-12-16 10:52

This is my code:

#footer {
   font-size: 10px;
   position:absolute;
   bottom:0;
   background:#ffffff;
}

I\'ve no idea what is wrong with

10条回答
  •  温柔的废话
    2020-12-16 11:32

    .footer-small, .push {
        background-color: #2C3E50;
        position: fixed;
        padding-top: 5px;
        clear:both;
        width: 100%;
        bottom:0px;
        z-index: 0;
    }
    

    this is also working for me....

提交回复
热议问题