Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

repeating image in table cell

Status
Not open for further replies.

mtg115

Technical User
Jun 23, 2004
5
US
Does anyone know how I can include a repeating image in a table cell?

Thanks
 
You might want to check into learning PHP or some server side language. That could do it for you

___________________________________
[morse]--... ...--[/morse], Eric.
 
The following example using CSS should get you started. I have defined 2 classes - each uses a different image. The first one repeats in the X axis (left to right) and the second repeats in the Y axis (top to bottom).

Code:
<style type="text/css">
.backgroundOne
{
 background-image:url(../images/bg_one.gif);
 background-repeat:repeat-x;
}
.backgroundTwo
{
 background-image:url(../images/bg_two.gif);
 background-repeat:repeat-y;
}
</style>

... then in the body of your document ...

<table width="500" cellpadding="0" cellspacing="0" border="0">
<tr>
 <td class="backgroundOne">&nbsp;</td>
 <td class="backgroundTwo">&nbsp;</td>
</tr>
</table>

Jeff
 
or u can simple set it as a background?
Code:
<td background="Image">asdasdas</td>

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top