css sticky footer in an asp.net page

前端 未结 2 619
感动是毒
感动是毒 2021-01-01 06:32

I am trying to create a footer that sticks to the bottom of the page. I have:


    
相关标签:
2条回答
  • 2021-01-01 06:42

    Try position absolute :

    #footer {
     clear: both;
     position: absolute;
     z-index: 10;
     width:1000px;
     margin:auto;
     bottom:0px;
     height:50px;
    }
    
    0 讨论(0)
  • 2021-01-01 06:52

    Look at this: http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page

    0 讨论(0)
提交回复
热议问题