Jump to content

Location within cell


ondi

Recommended Posts

As you can see http://www.walthamforest-fc.co.uk/stats/test.php the images appear in the correct area, but I would like to move them down slightly. (The badge, competition logo and match menu image)

I've been trying for a while now, but by using cellpadding i can't get the right end result as my background image is repeated.

Can anyone see where i'm going wrong? Here's my code: (a mixture of html and php)

 

echo"<center>

<TABLE 
  ALIGN=center
  BORDER=0
  CELLSPACING=0
  CELLPADDING=0>
<TR VALIGN=center  ALIGN=center>
<td background=\"http://www.walthamforest-fc.co.uk/stats/nextmatchleft.jpg\" width=\"150\" height=\"69\"><img src=\"/stats/images/smalls/$data[opp_id].jpg\"> <img src=\"/stats/comps/$data[type].jpg\"></TD>
<td background=\"http://www.walthamforest-fc.co.uk/stats/nextmatchright.jpg\" width=\"101\" height=\"69\"><img src=\"/stats/matchmenu.png\"></TD>
</TR>
</TABLE>
<TABLE 
  ALIGN=center
  BORDER=0
  CELLSPACING=0
  CELLPADDING=0>
<TR VALIGN=center  ALIGN=left>
<td align=\"center\" background=\"http://www.walthamforest-fc.co.uk/stats/bottomback.jpg\" width=\"251\" height=\"100\" colspan=\"2\">
$data[time]<br>
$data[type]<br>
$data[opp]<br>
HOME - $data[stadium]<br>
Kick off: $data[clock]<br></TD>
</TR>
</TABLE>

Link to comment
https://forums.phpfreaks.com/topic/137368-location-within-cell/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.