I am trying for this type of layout:
PHP Code:
------------------------------------
| | HEADER | |
| |----------------------| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| |----------------------| |
| | FOOTER | |
------------------------------------
So, the two columns on the right and left are about 15% wide, then there is the general content are in the middle which is 70% wide. In there, I want a header area and a footer area, between the 2 columns on the right and left. However, if the content in the middle does not span the entire length of the page so that the footer is at the bottom, I want the footer to be at the bottom of the users browser.
So far I have this css:
Code:
body {background-color: #EFEFEF;}
#header, #footer {
text-align: center;
}
#header {
height: 100px;
}
div.small {
width:10.2em;
position:absolute;
top:0;
font-size:80%;
padding-left:1%;
padding-right:1%;
margin-left:0;
margin-right:0;
}
#main {
margin-left:10.2em;
margin-right:10.2em;
padding-left:1em;
padding-right:1em;
}
#left {
left:0;
}
#right {
right:0;
}
And this html code:
Code:
<html>
<head>
<title>parrish.krayzieland.com v2</title>
<link rel=stylesheet type='text/css' href="css/style.css">
<script type='text/javascript' src="js/x.js"></script>
</head>
<body>
<div id='header'>
<img src="images/header.jpg" border='0'>
</div>
<div id='left' class='small'>
left
</div>
<div id='main'>
center
</div>
<div id='right' class='small'>
right
</div>
</body>
</html>
I don't think I have enough to make this work. I'm not sure how to get the footer into this, and make sure its at the bottom of the screen if the content doesn't push it there.
Please help?
Bookmarks