johnmossel
11-10-2010, 02:34 PM
Hi, My footer wont stick to the bottom of the page, it appears in the middle of the page when .posts class is filled with content.
The code is below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<!-- Theme design by http://blog.0arrays.com -->
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
<style type="text/css">
/* Theme design by http://blog.0arrays.com */
html, body
{
padding: 0px;
margin: 0px;
}
*
{
margin: 0px;
}
body
{
font-family:Georgia,"Times New Roman",Serif;
font-size: 14px;
height: 100%;
}
a
{
padding-top: 3px;
margin: 2px;
color: #000000;
word-spacing: normal;
text-decoration: none;
}
p
{
margin-top:0px;
padding: 0px;
}
a.posttitle-link
{
margin-top: 3px;
}
#topbar
{
height: 25px;
background: #030303;
min-width: 800px;
width: 100%;
}
#container
{
width: 800px;
margin: 0 auto;
position: relative;
height: 100%;
display: block;
}
#header
{
height: 140px;
width: 800px;
}
#logo
{
font-size: 40px;
font-weight: bold;
margin-left: 0px;
margin-top: 45px;
position: absolute;
}
#tagline
{
font-size: 14px;
font-style: italic;
margin-top: 89px;
padding: 5px;
position: absolute;
}
#topmenu
{
margin-top: 55px;
position: absolute;
text-align: right;
margin-left: 494px;
}
#search
{
margin-top: 72px;
text-align: right;
margin-left: 590px;
float: right;
}
.search
{
width: 200px;
height: 20px;
border: 1px solid #CCCCCC;
line-height: 12px;
font-size: 14px;
margin-top: 1px;
padding: 3px;
}
input
{
padding:4px 0;
margin: 4px;
}
.toplinks
{
word-spacing: .5em;
font-weight: bold;
}
a:hover
{
background: #FF0000;
color: #ffffff;
text-decoration: none;
}
#next
{
color: #ffffff;
text-align: right;
width: 350px;
padding:3px;
float: right;
}
#previous
{
color: #ffffff;
text-align: left;
width: 350px;
padding:3px;
float: left;
margin-left: 0px;
padding-left: 0px;
}
#posts-container
{
width: 800px;
margin-bottom: 20px;
position: absolute;
min-width: 800px;
display: block;
margin-bottom: 3em;
}
.posts
{
width: 613px;
margin-top: 0px;
padding-top: 0px;
margin-left:177px;
padding-left: 3px;
text-align: left;
position: absolute;
}
.leftmenu
{
width:175px;
text-align: right;
margin-left: 0px;
}
.posttitle
{
font-size: 18px;
font-weight: bold;
text-align: right;
padding-top: 3px;
margin-left: 6px;
}
.date
{
background: #d4ff40;
width: 160px;
height: 14px;
text-align: center;
padding: 4px;
color: #7c9c2d;
font-size: 11px;
}
blockquote
{
background: #F0F0F0;
padding:3px;
width: 400px;
}
.clearfix
{
height: 20px;
width: 100%;
}
#footer {
width: 50px;
bottom: 0;
padding-bottom: 0;
display: block;
}
</style>
<title> {Title} </title>
</head>
<body>
<div id="topbar">
<div id="previous">
{block:PreviousPage}<a href="{PreviousPage}">« Previous</a>{/block:PreviousPage}
</div>
<div id="next">
{block:NextPage}<a href="{NextPage}">Next »</a>{/block:NextPage}
</div>
</div>
<div id="container">
<div id="header">
<div id="logo">
{title}
</div>
<div id="tagline">
So, why do arrays start from zero?
</div>
<div id="topmenu" class="toplinks">
<a href="/">Home</a> <a href="/archive">Archive</a> <a href="/ask">Ask Me</a> <a href="/rss">RSS</a>
<a href="/about">About</a>
</div>
<div id="search">
<form action="/search" method="get">
<input class="search" type="text" name="q" value="search" id="" />
</form>
</div>
</div>
<div id="posts-container">
{block:Posts}
<div class="posts">
{block:Text}
{Body}
{/block:Text}
{block:Quote}
<p><blockquote>
"{Quote}"
{block:Source}
<br><strong><i>-- {Source} </i></strong></br>
{/block:Source}
</blockquote></p>
{/block:Quote}
</div>
<div class="leftmenu">
<div class="date" >
{DayOfMonth}{DayOfMonthSuffix} {Month} {Year}
</div>
<div class="posttitle">
{block:Title}
<a class="posttitle-link" href="{Permalink}">{Title}...</a>
{/block:Title}
</div>
<i>- Filed under Misc -</i>
</div>
<div class="clearfix"> </div>
{/block:Posts}
</div>
<div id="footer"> bottom???</div>
</div>
</body>
</html>
You can see the live example here http://blog.0arrays.com/
I don't really care if the footer is sticky or not, I just want it to stick to the bottom of the page.
Thanks for any help in advance.
The code is below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<!-- Theme design by http://blog.0arrays.com -->
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
<style type="text/css">
/* Theme design by http://blog.0arrays.com */
html, body
{
padding: 0px;
margin: 0px;
}
*
{
margin: 0px;
}
body
{
font-family:Georgia,"Times New Roman",Serif;
font-size: 14px;
height: 100%;
}
a
{
padding-top: 3px;
margin: 2px;
color: #000000;
word-spacing: normal;
text-decoration: none;
}
p
{
margin-top:0px;
padding: 0px;
}
a.posttitle-link
{
margin-top: 3px;
}
#topbar
{
height: 25px;
background: #030303;
min-width: 800px;
width: 100%;
}
#container
{
width: 800px;
margin: 0 auto;
position: relative;
height: 100%;
display: block;
}
#header
{
height: 140px;
width: 800px;
}
#logo
{
font-size: 40px;
font-weight: bold;
margin-left: 0px;
margin-top: 45px;
position: absolute;
}
#tagline
{
font-size: 14px;
font-style: italic;
margin-top: 89px;
padding: 5px;
position: absolute;
}
#topmenu
{
margin-top: 55px;
position: absolute;
text-align: right;
margin-left: 494px;
}
#search
{
margin-top: 72px;
text-align: right;
margin-left: 590px;
float: right;
}
.search
{
width: 200px;
height: 20px;
border: 1px solid #CCCCCC;
line-height: 12px;
font-size: 14px;
margin-top: 1px;
padding: 3px;
}
input
{
padding:4px 0;
margin: 4px;
}
.toplinks
{
word-spacing: .5em;
font-weight: bold;
}
a:hover
{
background: #FF0000;
color: #ffffff;
text-decoration: none;
}
#next
{
color: #ffffff;
text-align: right;
width: 350px;
padding:3px;
float: right;
}
#previous
{
color: #ffffff;
text-align: left;
width: 350px;
padding:3px;
float: left;
margin-left: 0px;
padding-left: 0px;
}
#posts-container
{
width: 800px;
margin-bottom: 20px;
position: absolute;
min-width: 800px;
display: block;
margin-bottom: 3em;
}
.posts
{
width: 613px;
margin-top: 0px;
padding-top: 0px;
margin-left:177px;
padding-left: 3px;
text-align: left;
position: absolute;
}
.leftmenu
{
width:175px;
text-align: right;
margin-left: 0px;
}
.posttitle
{
font-size: 18px;
font-weight: bold;
text-align: right;
padding-top: 3px;
margin-left: 6px;
}
.date
{
background: #d4ff40;
width: 160px;
height: 14px;
text-align: center;
padding: 4px;
color: #7c9c2d;
font-size: 11px;
}
blockquote
{
background: #F0F0F0;
padding:3px;
width: 400px;
}
.clearfix
{
height: 20px;
width: 100%;
}
#footer {
width: 50px;
bottom: 0;
padding-bottom: 0;
display: block;
}
</style>
<title> {Title} </title>
</head>
<body>
<div id="topbar">
<div id="previous">
{block:PreviousPage}<a href="{PreviousPage}">« Previous</a>{/block:PreviousPage}
</div>
<div id="next">
{block:NextPage}<a href="{NextPage}">Next »</a>{/block:NextPage}
</div>
</div>
<div id="container">
<div id="header">
<div id="logo">
{title}
</div>
<div id="tagline">
So, why do arrays start from zero?
</div>
<div id="topmenu" class="toplinks">
<a href="/">Home</a> <a href="/archive">Archive</a> <a href="/ask">Ask Me</a> <a href="/rss">RSS</a>
<a href="/about">About</a>
</div>
<div id="search">
<form action="/search" method="get">
<input class="search" type="text" name="q" value="search" id="" />
</form>
</div>
</div>
<div id="posts-container">
{block:Posts}
<div class="posts">
{block:Text}
{Body}
{/block:Text}
{block:Quote}
<p><blockquote>
"{Quote}"
{block:Source}
<br><strong><i>-- {Source} </i></strong></br>
{/block:Source}
</blockquote></p>
{/block:Quote}
</div>
<div class="leftmenu">
<div class="date" >
{DayOfMonth}{DayOfMonthSuffix} {Month} {Year}
</div>
<div class="posttitle">
{block:Title}
<a class="posttitle-link" href="{Permalink}">{Title}...</a>
{/block:Title}
</div>
<i>- Filed under Misc -</i>
</div>
<div class="clearfix"> </div>
{/block:Posts}
</div>
<div id="footer"> bottom???</div>
</div>
</body>
</html>
You can see the live example here http://blog.0arrays.com/
I don't really care if the footer is sticky or not, I just want it to stick to the bottom of the page.
Thanks for any help in advance.