Page 1 of 1

How To Make Table Image Static

Posted: Sun Jun 10, 2007 12:19 pm
by 4Boredom
I am attempting to make an image static within my table. Well, actually the problem is the image repeats multiple times and I only want it once and centered. http://www.whatsupinnh.com/main.php

Code: Select all

<TABLE width="800" bgcolor="black"  background="middle.gif" bgproperties="fixed">
The following code didnt work... is there a PHP script or anything I can use to achieve this purpose of making it only show once? (The state image)

Posted: Sun Jun 10, 2007 12:37 pm
by .Stealth
is it in a loop?

Posted: Sun Jun 10, 2007 12:45 pm
by 4Boredom
no

Posted: Sun Jun 10, 2007 1:25 pm
by superdezign
:lol: A loop? How?
This isn't PHP, my friend. Not in the least.

What you are looking at is a misunderstanding of what "fixed" is. It means the image doesn't scroll... it does not affect the repeating or position of the image. Try a nice, neat style tag.

Code: Select all

<table style="width: 800px; background-image: url(middle.gif); background-position: center; background-repeat: no-repeat;">

Posted: Sun Jun 10, 2007 1:29 pm
by 4Boredom
i know its not php i was just asking if there was a solution.. and thank you very much