Page 1 of 1

Background is repeated

Posted: Fri Dec 01, 2006 2:21 am
by eshban
I am facing a problem in PHP and HTML. I use a background Image but i want that when page is extent then BACKGROUND will not repeat.

I use STYLE "background-repeat:no-repeat" for this, but it wont work

Code: Select all

<table border=2 width=100% cellspacing=0 cellpadding=2 background="images/main-back-other-pages.gif">
			<tr>
			<td valign=top width='".$cw."%' align=center class=\"style1\">			
			
			<tr>
			<td class=labels valign=top colspan=2 align=left></td>
			</tr>
			
			<tr>		
			<td width=75% class=style1 valign=top align=left style="background-repeat:no-repeat"> 
			
			
			<font class=labels>Category: </font><br>			
			<font class=labels>Viewed: </font><br>	
			Sold:<br>
			<font class=labels>Video Length:</font><br>
			<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>
			<font class=labels>Video Length:</font><br>
			<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>			
			<font class=labels>Video Length:</font><br>
			<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>			
<font class=labels>Video Length:</font><br>
			<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>
			<font class=labels>Video Length:</font><br>
			<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>			
			<font class=labels>Video Length:</font><br>
			<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>		
<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>
			<font class=labels>Video Length:</font><br>
			<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>			
			<font class=labels>Video Length:</font><br>
			<font class=labels>Video Size: </font><br>
			<font class=labels>Uploaded on:</font>									
			
			</td>	
			</tr>
			</td>
			</tr>

			</table>
Please Help in this manner

Posted: Fri Dec 01, 2006 8:03 am
by kendall
i think u need to put in on the html element that has the background image attached

Code: Select all

td {
background-image url();
background-repeat : no-repeat;
}

Posted: Fri Dec 01, 2006 8:04 am
by John Cartwright
Moved to Client-Side.

Posted: Fri Dec 01, 2006 8:13 am
by matthijs

Code: Select all

css:
table {
  background: #fff url(yourimage.gif) top left no-repeat;
}
of course you can adjust the color and position as you wish