We would like to know how to fix footer to bottom.
<!--from w w w .java 2 s . com-->
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#footer {
position: fixed;
bottom: 20px;
background-color: red;
width: 80%;
margin: 0 0 0 -40%;
left: 50%;
}
</style>
</head>
<body>
<div id="footer">hello world</div>
</body>
</html>
The code above is rendered as follows: