无论内容的长度如何,我都试图在我的内容下的网页上获取页脚。出于某种原因,它不想这样做。
HTML:
<div class="container">
<div class="navigatie">
<ul>
<a class="navigatielink" href="index.php?page=home"><li class="navigatieli navigatie1">Home</li></a>
<a class="navigatielink" href="index.php?page=info"><li class="navigatieli navigatie2">Info</li></a>
<a class="navigatielink" href="index.php?page=agenda"><li class="navigatieli navigatie3 ">Agenda</li></a>
<a class="navigatielink" href="index.php?page=fotos"><li class="navigatieli navigatie4">Foto's</li></a>
<a class="navigatielink" href="index.php?page=contact"><li class="navigatieli navigatie5">Contact</li></a>
<a class="navigatielink" href="index.php?page=gastenboek"><li class="navigatieli navigatie6">Gastenboek</li></a>
</ul>
</div>
<?php
//include the page content
include_once ("content/".$_PAGE.'.php');
?>
</div>
<div class="clear"></div>
<div class="footer">
CSS:
.container {
width: 1000px;
margin: auto;
height: auto;
}
.clear {
clear: both;
}
.footer {
background-image: url("images/css/footer.png");
height: 500px;
}
.navigatie {
font-family: Rockwell;
height: 45px;
width: 980px;
margin:auto;
margin-top: 15px;
font-size: 24px;
border: 1px solid #c3c3c3;
background: #fff;
}
我已经尝试将.container
高度设置为 100% 并使用定位,但无论它的长度如何,我似乎都无法在内容下方获得此页脚......
还有更多建议吗?
编辑:
关于这个网站