I have a footer at the bottom of my page. When there is enough content the footer is pushed of the page until you scroll down where it becomes visible. This is good but when there is not enough content on the page the footer is visible without scrolling somewhere on the page but it is not at the bottom where it should be. How can I make my footer be at the bottom of the page when there is not enough content? Here is my code:
<html>
<head>
<title>Omicrome</title>
//stuff
</head>
<body>
<div class = "container_24">
<header>
//stuff
</header>
//stuff
</div>
</body>
<div id = "rectangle">
<center>
<a href="about" id = "footerbtn2">About</a>
<a href="privacy_policy.php" id = "footerbtn1">Privacy Policy</a>
<a href="about" id = "footerbtn4">Contact</a>
</center>
<center><div id = "footerborder"></div></center>
</div>
</html>
My css:
body{
background-image: url("../img/bg.jpg");
background-repeat: repeat;
}
header{
overflow: hidden;
}
.container_24{
margin-left: auto;
margin-right: auto;
}
#rectangle {
float:bottom;
position: relative;
width: 100%;
height: 40px;
padding-top: 15px;
padding-bottom: 10px;
background: #404040;
top: 50%;
}