Link: Joey Lai - jlai
Essentially, I have my height for my page id (header,content,footer) as 100% but my the body of the page doesn't stretch out to 100% and my footer id is not located on the very bottom of the page.
Help!
HTML:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="styles.css" >
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
</script>
<title>Joey Lai | HOME</title>
</head>
<body>
<div id="page">
<div id="header">
<ul>
<li><a href="http://www.jlai.ca">Home</a></li>
<li><a href="http://www.jlai.ca/ep3blog.html">EP3</a></li>
<li><a href="http://www.jlai.ca/about.html">About</a></li>
<li><a href="http://www.jlai.ca/contact.html">Contact</a></li>
</ul>
</div>
<div id="body">
TEST
</div>
<div id="footer">
© All Rights Reserved By Joey Lai
</div>
</div>
</body>
</html>
CSS:
body
{
background-color: #FFFFFF;
font-family: verdana;
font-size: 70%;
color: #FFFFFF;
width: 100%;
height: 100%;
}
*
{
margin: 0;
padding: 0;
}
a:link
{
color: #666666;
text-decoration: none;
text-transform: uppercase;
}
a:visited
{
color: #666666;
text-decoration: none;
text-transform: uppercase;
}
a:active
{
color: #666666;
text-decoration: none;
text-transform: uppercase;
}
a:hover
{
color: #FFFFFF;
text-decoration: none;
text-transform: uppercase;
}
div#page
{
background-color: #333333;
height: 100%;
margin-left: 10%;
margin-right: 10%;
border-style: solid;
border-width: 1px;
}
div#header
{
background-color: #000000;
font-size: 120%;
height: 50px;
}
ul
{
list-style-type: none;
}
li
{
float: left;
padding: 10px;
}
div#body
{
}
div#footer
{
color:#333333;
background-color: #000000;
bottom:0;
height: 35px;
text-align: center;
}


Sign In
Create Account


Back to top









