Solved

Getting a body background to be at the bottom of the page

Posted on 2008-06-18
1
749 Views
Last Modified: 2012-06-21
http://ne3d.cwtclients.co.uk/homepage

In the link above I've set a background using CSS so that the body tag should have a background image center aligned and at the bottom of the page. In IE this is working fine, but in FF it's putting the background at the bottom of the window rather than the bottom of the page. So when you scroll down the background image is in the middle of the page.

Can anyone help resolve this.

I've attached some css
html {
	height: 100%;
	}
 
body {
	width: 100%;
	height: 100%;
	margin: 0px;
	padding: 0px;
	background: url(../images/body-bg.png) center bottom no-repeat;	
	font-family: Arial, Helvetica, sans-serif;
	}

Open in new window

0
Comment
1 Comment
 
LVL 2

Accepted Solution

by:
TheVanter earned 500 total points
ID: 21814130
remove the:

html {
        height: 100%;
        }

from your css and it works
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

685 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