Sticky Footer CSS Problems

狂风中的少年 提交于 2019-12-20 06:08:30

问题


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 this layout which also has the background in the right hand column flow down the footer and also with the border I have in the left hand column.

Is there a way to do this with my current layout or it would great if anyone could suggest an alternative to the way I'm currently doing it!

Thanks!


回答1:


Take a look at Sticky Footer 2009. This has been discussed multiple times on SO as well.




回答2:


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%;
}


来源:https://stackoverflow.com/questions/1424610/sticky-footer-css-problems

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!