ondi Posted December 17, 2008 Share Posted December 17, 2008 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 More sharing options...
shadiadiph Posted December 19, 2008 Share Posted December 19, 2008 you could try using style='padding: 20px 0px 0px 0px' in your td sevtion it might work but i would suggest using a css style sheet then you can manipulate the position of each image to the nearest pixel. Link to comment https://forums.phpfreaks.com/topic/137368-location-within-cell/#findComment-719924 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.