Added a wrapper div and CSS to make the footer stick to the bottom of the page. Docs at cssstickyfooter.com. Closes magicbug/cloudlog#135.

这个提交包含在:
Corby Krick 2013-04-21 17:39:54 -07:00
父节点 de041bb6cd
当前提交 66d0bef23a
共有 3 个文件被更改,包括 18 次插入2 次删除

查看文件

@ -1,6 +1,7 @@
</div> <!-- end wrapper -->
<div id="footer">
<a href="http://www.cloudlog.co.uk">Powered by Cloudlog</a>
</div>
</body>
</html>
</html>

查看文件

@ -17,6 +17,13 @@
<link rel="stylesheet" href="<?php echo base_url();?>css/bootcamp/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/main.css" type="text/css" />
<!-- Sticky Footer IE -->
<!--[if !IE 7]>
<style type="text/css">
#wrap {display:table;height:100%}
</style>
<![endif]-->
<!-- Theming Code Goes Here -->
<!-- Icons -->
@ -117,3 +124,4 @@
</div>
<div id="clear" class="clear"></div>
<div id="wrap">

查看文件

@ -1,6 +1,13 @@
html, body {height: 100%;}
#wrap {min-height: 100%;}
#main {overflow:auto; padding-bottom: 3em; /* must be same height as the footer */ }
#container { padding-top: 50px; width: 940px; margin: 0 auto; }
#footer { width: 940px; margin: 0 auto; text-align: right; }
#footer { width: 940px; margin: -3em auto; text-align: right; position: relative; clear:both; height: 3em;
/* margin-top must be the negative value of footer height */ }
table .titles { font-weight: bold; color: #439BF6; }
table .title { font-weight: bold; color: #439BF6; }