View Full Version : Fixed background

08-30-2005, 06:19 PM
Hi, I do very simple websites but have always liked the look of a fixed background. I followed the instructions given at [URL=http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id] ...hope that is the right address, but after filling in CSS Style sheet as directed, my background is still not fixed. Any ideas as to what I might be doing wrong please. Do I have to put in background in Page Properties first ...when I did not and just completed Style sheet, the background did not appear at all.

Help please!

08-30-2005, 07:41 PM
then url you posted is not working, can you try posting it again?
Also you need some code or url to your page, we can't troubleshoot code that doesn't exist ;)

08-30-2005, 08:50 PM
This is it! It is just a trial page so not part of a site as yet.....not trying to get it to work

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
background-image: url(roblight.jpg);
ron {
background-attachment: fixed;
background-image: url(roblight.jpg);
background-repeat: no-repeat;
background-position: center center;

<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 150px; top: 85px;">sea.jpg</div>
<div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2; left: 216px; top: 505px;">shop.jpg</div>