Forum Moderators: not2easy
I am trying to align an image to the bottom center of a page. The code works fine with IE, but with Firefox it doesn't. The image appears only partially visible at the top of the page, rather completely visable along the bottom.
CSS
body {
background-image:
url('gradient.png');
background-repeat: repeat-x;
background-position: bottom center;
}
HTML
<html>
<head>
<title>gradient test</title>
<LINK REL=StyleSheet HREF="blah.css" TYPE="text/css" MEDIA=screen>
</head>
<body>
</body>
</html>
I want to position another image on top of the gradient I created at the bottom. It needs to be aligned with the absolute bottom of the page, and the absolute right, however when I try this there is some border space around the image and a scroll bar appears to the left.
CSS:
body {
background-color: fcfcfe;
background-image: url('gradient.png');
background-repeat: repeat-x;
background-position: bottom center;
background-attachment: fixed;
height:100%;
}div {
background-image:url("thing.png");
background-repeat:no-repeat;
background-position: 0% 100%;
background-attachment: fixed;
height:100%;
}
span {display:none;}
HTML:
<html>
<head>
<title>gradient test</title>
<LINK REL=StyleSheet HREF="blah.css" TYPE="text/css" MEDIA=screen>
</head>
<body>
<div>
<span>blah</span>
</div>
</body>
</html>
[edited by: jatar_k at 3:23 pm (utc) on July 29, 2006]
[edit reason]
[1][edit reason] no urls thanks [/edit] [/edit][/1]