CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page

前端 未结 29 2518
悲哀的现实
悲哀的现实 2020-11-21 23:48

I have the following page (deadlink: http://www.workingstorage.com/Sample.htm ) that has a footer which I can\'t make sit at the bottom of the page.

I wa

29条回答
  •  青春惊慌失措
    2020-11-22 00:23

    What I did

    Html

        
    /* your content*/

    css

    .register {
              min-height : calc(100vh - 10rem);
      }
    
    .footer {
             height: 10rem;
     }
    

    Dont need to use position fixed and absolute. Just write the html in proper way.

提交回复
热议问题