Solved

Want footer to be placed at very bottom of HTML page with CSS

Posted on 2008-10-17
3
213 Views
Last Modified: 2010-04-21
My entire site uses DIV's instead of tables.  What I want to do is have the footer to be located at the very bottom of the page rather than below the content.  Here is the page

http://www.mybiblegames.com/games.php

How can I achieve this?  Attached is the CSS code behind the site.


@charset "utf-8";

/* CSS Document */
 

body{

	background-image:url('images/background.png');

	background-position:center;

	background-attachment:fixed;

	text-align:center;

	background-position:bottom;

	vertical-align:top;

	border:none;

	border-width:0;

	margin:0;

	padding:0;

	margin-top:0;

	font-family:Arial, Helvetica, sans-serif;

	font-size:14px;

}
 

.siteFrame{

	border:none;

	border-width:0;

	width:764px;

	height:100%;

	margin:0;

	padding:0;

	text-align:left;

	margin-top:0;

	margin-left:0;

	margin-right:0;

	background-image:url('images/header.jpg');

	background-position:top;

	background-repeat:no-repeat;

	background-color:white;

}
 
 
 

/* Links */

a{

	color:#b0a310;

	font-weight:bold;

	text-decoration:underline;

}

a:hover{

	color:#7e896e;

	text-decoration:overline underline;

}

a:active{

	color:#426ae1;

	text-decoration:none;

}

a:visited{

	color:#897f0c;

}
 
 
 

/* Formated Text */

.contentSmallTitle{

	font-size:12px; 

	font-weight:bold; 

	color:white;

}
 
 
 

/* A content Box that fills the entire page horizontally */

.contentBox{

	background-image:url('images/contentBorder.png'); 

	width:754px;

}

.contentBoxInside{

	background-color:white; 

	width:740px; 

	text-align:left; 

	padding:4px;

}

.contentBoxShadow{

	width:754px; 

	height:8px; 

	background-image:url('images/contentBorderShadowBottom.gif'); 

	background-repeat:repeat-x;

}

.bibleVerse{

	font-family:"Times New Roman", Times, serif;

	font-size:14px;

	text-align:center;

}
 
 
 

/* A divided Content Box */

.divContentBox{

	width:764px;

}

.divLeftBox{

	margin: 0 0 0 5px; 

	float:left;

}

.divLeftBoxBorder{

	background-image:url('images/contentBorder.png'); 

	width:374px;

}

.divLeftBoxInside{

	background-color:white; 

	width:360px; 

	height:262px; 

	text-align:left; 

	padding:4px;

}

.divLeftBoxShadow{

	width:374px; 

	height:8px; 

	background-image:url('images/contentBorderShadowBottom.gif'); 

	background-repeat:repeat-x;

}

.divRightBox{

	margin: 0 0 0 381px;

}

.divRightBoxBorder{

	background-image:url('images/contentBorder.png'); 

	background-position:right; width:374px;

}

.divRightBoxInsideNonPadded{

	background-color:white; 

	width:368px; 

	text-align:left;

}

.divRightBoxInside{

	background-color:white; 

	width:360px; 

	text-align:left; 

	padding:4px;

}
 

.divRightBoxShadow{

	width:374px; 

	height:8px; 

	background-image:url('images/contentBorderShadowBottom.gif'); 

	background-repeat:repeat-x;

}
 
 
 

/* Footer Related */

.footer{

	background-position:bottom;

	width:764px; 

	background-image:url('images/footerBackground.gif');

	background-repeat:repeat-x;

	height:38px;

	color:#cccbe7;

	font-size:12px; 

	vertical-align:bottom;

	line-height:1;

}

a.footerLinks{

	color:#e0ddc0;

	font-weight:bold;

	text-decoration:none;

}

a:hover.footerLinks{

	color:#c0c2e0;

	text-decoration:none;

}

Open in new window

0
Comment
Question by:davideo7
3 Comments
 
LVL 11

Expert Comment

by:glumlun
ID: 22742783
0
 
LVL 8

Accepted Solution

by:
eszaq earned 500 total points
ID: 22743076
Move your footer in HTML up - iside <body><center>, just under your HTML comment "Begin Footer" and add in your CSS for .footer :
position:fixed;
bottom:0;
0
 

Author Closing Comment

by:davideo7
ID: 31507186
Hey that worked! Thanks :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now