[UPHPU] weird looping image in <td>
Wade Preston Shearer
lists at wadeshearer.com
Thu Jan 10 20:57:54 MST 2008
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080110/e850e8ae/smime.bin
More information about the UPHPU
mailing list