View Full Version : Background image

Dec 6th, 2008, 11:26 AM
when i press the right hand side arrow or the space bar, it will scroll over
i dont want this to happen!


i want the background image to stay fixed
i dont want it to move but i dont know how to fix it D:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="togglemenu.js"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<div id="bgimg">
<table cellpadding="0" cellspacing="0">
<td><img src="nodollar.jpg" alt=" "/></td></tr>

<div id="textdiv">
<div class="white">
<div class="link">
<div id="menu"><ul class="menu">
<li><a href="http://google.com" class="one">info</a></li>
<li><a href="http://google.com" class="two">artist</a>
<li><a href="dollarcquilts.php">resume</a></li>
<li><a href="press.php">press</a></li>
<li><a href="http://google.com" class="three">writings</a></li>
<li><a href="#" class="four">artwork</a>
<li><a href="dollarcquilts.php">dollar quilts</a></li>
<li><a href="wovendollars.php">woven dollars</a></li>
<li><a href="dollarcollages.php">dollar collages</a></li>
<li><a href="selfimage.php">self/image</a></li>
<li><a href="catalogcovers.php">catolog covers</a></li>
<li><a href="newyorktimes.php">new york times</a></li>
<li><a href="other.php">other</a></li>
<li><a href="inprogress.php">in progress</a></li>
<li><a href="http://google.com" class="five">shopping</a></li>


<?php include('header.php'); ?>
<h2>Dollar Collages</h2>
<a href="artwork/dollarcollages/01.jpg" rel="lightbox[dollarcollages]" title="Blanked Dollar, 2006 (2.75 inches x 6 inches)"><img src="artwork/dollarcollages/thumbnails/01.jpg" border="0" alt=" "/></a> <br/>
<a href="artwork/dollarcollages/02.jpg" rel="lightbox[dollarcollages]" title="Blanked Dollar (Reverse), 2006 (2.75 inches x 6 inches)"><img src="artwork/dollarcollages/thumbnails/02.jpg" border="0" alt=" "/></a> <br/>
<br /><br />
<?php include('footer.php'); ?>



Dec 6th, 2008, 12:05 PM
Could you post a link to your page?

Dec 6th, 2008, 12:07 PM
i want the background image to stay fixed
i dont want it to move but i dont know how to fix it D:Use (CSS) background-attachment: fixed;?

Dec 6th, 2008, 01:02 PM
^ I already did - the page still goes sideways like that.


Dec 6th, 2008, 03:38 PM
*Oh and FYI there's only this problem in Firefox*


Is it fixable?

Dec 7th, 2008, 05:47 AM
^ I already did - the page still goes sideways like that.

I just did a quick search of the code in lightbox.css, style.css, and http://burtsbees.khigo.com/ for the keyword fixed and found no matches. Where are you using background-attachment: fixed?
Why are you using img and table elements to display a background image? Try removing the div#bgimg element and all of its content from your HTML‐XHTML document and adding the following CSS to your style sheet.

html { background: url("nodollar.jpg") fixed; }

Dec 8th, 2008, 03:29 PM
^ the reason why I'm doing that is cause I want it to stretch to fit the whole screen rather than tile.
and i can't figure out how to do that without using tables and div containers

Dec 9th, 2008, 07:51 AM
Have a look at http://www.cssplay.co.uk/layouts/background.html (and its source).