Cant remember how to tile images in a table

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
andylyon87
Forum Contributor
Posts: 168
Joined: Sat Jan 31, 2004 5:31 am
Location: Dundee

Cant remember how to tile images in a table

Post by andylyon87 »

Hi guys

I am gettin seriously annoyed with this cos I can't find whats wrong with the code anywhere. All I want is the images 1_17.jpg, 1_18.jpg, 1_19.jpg to repeat when the table is stretched, they should just tile but I cant remember how.

Code: Select all

<TR>
           <TD background=images/jpg/layout/1_17.jpg></TD>
           <TD background=images/jpg/layout/1_18.jpg></TD>
           <TD background=images/jpg/layout/1_19.jpg></TD>
       </TR>
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Code: Select all

background-image: imagepath/name;
background-repeat: repeat-y;
My CSS is very shady, but something like that should work.
A background image to my understanding, the way you have it setup, will repeat over and over. Althought the way you have it setup its possible that your rows arn't being stretched, but a specific row on the table, thus leaving your currently rows with a single background.
andylyon87
Forum Contributor
Posts: 168
Joined: Sat Jan 31, 2004 5:31 am
Location: Dundee

Post by andylyon87 »

I tried that and it didnt work, I then tried

Code: Select all

<TR>
           <TD style="background-image: url(images/jpg/layout/1_17.jpg); background-repeat: repeat-y;"></TD>
           <TD style="background-image: url(images/jpg/layout/1_18.jpg); background-repeat: repeat-y;"></TD>
           <TD style="background-image: url(images/jpg/layout/1_19.jpg); background-repeat: repeat-y;"></TD>
       </TR>
I wondered if it affected it if it had a cell beneath it.
Post Reply