How To Make Table Image Static

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
4Boredom
Forum Contributor
Posts: 176
Joined: Tue Nov 08, 2005 4:29 pm

How To Make Table Image Static

Post 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)
.Stealth
Forum Commoner
Posts: 57
Joined: Wed Jan 10, 2007 12:15 pm
Location: Manchester, England

Post by .Stealth »

is it in a loop?
4Boredom
Forum Contributor
Posts: 176
Joined: Tue Nov 08, 2005 4:29 pm

Post by 4Boredom »

no
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post 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;">
4Boredom
Forum Contributor
Posts: 176
Joined: Tue Nov 08, 2005 4:29 pm

Post by 4Boredom »

i know its not php i was just asking if there was a solution.. and thank you very much
Post Reply