Web Hosting Talk







View Full Version : problem with a background image


crazyfish
12-27-2004, 12:00 PM
Take a look at this http://nicholasfish.com/myers/

In firefox the background image shows up behind the text the way I want it, which is to have the image displayed one and the text moves on top of that image, but in IE it does not display it has a white background instead but here is the good part, if you right click in that white space you can copy, save as, set as background, and if you do any of those the image is there and I was able to save it and make it my background for my desktop, so can anyone figure out why it isn't displaying I am stubbed by this one, I tried a bunch of different things but it never changed the results.

Thanks

bobo920
12-27-2004, 01:56 PM
Could be your script if your useing it.....

crazyfish
12-27-2004, 01:57 PM
there isn't a script, it just plain old html with an iframe inside a table

gRF
12-27-2004, 04:29 PM
your code looks like this:

<tr>
<td width="663" height="374" background="http://www.nicholasfish.com/myers/back.gif"><iframe name="_pics" frameborder="0" width="663" height="374" src="test.htm" scrolling="yes"> </iframe></td>
</tr>

That image (back.gif) is the background image of a cell (<td>) - it should be part of <iframe> tag.
Or, in test.htm, change the CSS part to :
<style type="text/css">
body {
font-family: Georgia;
font-size: 14px;
background: url(/myers/back.gif)
}
</style>

crazyfish
12-27-2004, 09:41 PM
I had put it in the test.htm file but it just tiled it so the image moved when scrolling up or down, I want the image to stay in one position and have the text scroll on top of it. I trying to insert it into the ifram but that did fix it either.

gRF
12-27-2004, 10:09 PM
Since I beleive you use Dreamweaver, play with background-image options in the css editor, and you'll get the image in fixed position

crazyfish
12-27-2004, 10:13 PM
I added this <body background="back.gif" bgproperties="fixed"> into the test.htm page but it only works in IE so I went and define the background image into the cell and now it displays in both browsers but to me thats kinda sloppy coding, but when it was added to the css it didn't display in firefox at all and it wasn't right in IE, its working now, but I still don't think its right lol.

yes I use dreamweaver for most stuff.