[UPHPU] weird looping image in <td>

Caleb Call caleb at macjunk.org
Thu Jan 10 21:53:13 MST 2008


Perfect, thanks guys.  Using a some css and setting background to not  
repeat did the trick.

This is actually not a web page or anything, this will be set inside a  
table (hence the use of a table) and this is merely the code (the  
reason for my comments on where to place the code).  My friend wanted  
a count down timer to an event using his graphics...so I provided that  
for him :-)

Thanks again for the quick help.

On Jan 10, 2008, at 8:57 PM, Wade Preston Shearer wrote:

>> I know this is more of an HTML question but I have an odd problem.   
>> I have a "banner" that I am helping a friend out with that is kind  
>> of looping the image because I have it set as the background of the  
>> <td>.  What can be done to stop this?  I've tried specifying the  
>> height of the table and it doesn't do anything till I get above the  
>> actual size of the image and then it continues the image loop that  
>> it has began on it's own.  Even if I set the height to much smaller  
>> than the actual height of the background image I still get this  
>> exact same result.
>
> A value of the background property is 'background-repeat', which  
> controls whether the image repeats or not. Also, I would recommend  
> setting all of style properties within a the style attribute. Thus,  
> your block of code would look like this:
>
> <table style="border: 0">
> 	<tr>
> 		<td style="background: url('numbers/background.jpg') center no- 
> repeat; width: 755px; height: 50px; text-align: right, vertical- 
> align: center">
>
>
> Also, is there a specific reason that you are using a table for  
> this? If there is only one cell in your table, then you are misusing  
> a table.



More information about the UPHPU mailing list