Sticky Footer CSS Problems

前端 未结 2 1221
礼貌的吻别
礼貌的吻别 2021-01-26 02:24

I have been able to design my layout so that it has 2 columns and a width of 100%, you can see that here.

Now I\'m trying to implement a sticky footer (100%) height with

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-26 03:11

    I would add a CSS class to the DIV containing the columns and style that. To get close, I had to add the following to your CSS file:

    body
    {
     height: 100%;
    }
    
    .footer
    {
     position: absolute;
     top: 90%;
     left: 0;
     height: 10%;
    }
    

提交回复
热议问题