Page 1 of 1

Cant remember how to tile images in a table

Posted: Sun Dec 12, 2004 1:57 pm
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>

Posted: Sun Dec 12, 2004 3:02 pm
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.

Posted: Mon Dec 13, 2004 8:32 am
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.