csgcarl Posted May 21, 2007 Share Posted May 21, 2007 Hello, If someone could help me on whats wrong that would be great! For some reason the background images don't show up... <?php If ($vbulletin->userinfo['userid']!=0) { echo ' <td style="background-image:url("http://www.battlestationextreme.com/images/homepage09.jpg"); height:40px"> <table width="181" border="0" cellspacing="0" cellpadding="0" id="table28"> <tr> <td width="15"><img src="http://www.battlestationextreme.com/images/spacer.gif" alt="" width="15" height="40"></td> <td width="166" class="text2"> My BSE</td> </tr> </table> </td> </tr> <tr> <td style="background-image:url("http://www.battlestationextreme.com/images/homepage10.jpg"); height:29px"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table29"> <tr> <td width="8%"><img src="http://www.battlestationextreme.com/images/spacer.gif" alt="" width="15" height="29"></td> <td width="92%"><a class="link1" href="http://www.battlestationextreme.com/forums/usercp.php">Register!</a></td> </tr> </table> </td> </tr> <tr> <td style="background-image:url("http://www.battlestationextreme.com/images/homepage10.jpg"); height:29px"> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table30"> <tr> <td width="8%"><img src="http://www.battlestationextreme.com/images/spacer.gif" alt="" width="15" height="29"></td> <td width="92%"><a class="link1" href="http://www.battlestationextreme.com/forums/private.php">Login</a></td> </tr> </table> </td>'; } else { echo "Your not logged in so we display this"; } ?> Thanks for looking. Carl Quote Link to comment https://forums.phpfreaks.com/topic/52320-solved-background-images-not-showing/ Share on other sites More sharing options...
marmite Posted May 24, 2007 Share Posted May 24, 2007 do you need another ; after height? td style="background-image:url("http://www.battlestationextreme.com/images/homepage09.jpg"); height:40px;" instead of td style="background-image:url("http://www.battlestationextreme.com/images/homepage09.jpg"); height:40px" ?? I always require a css file and do it there. sample code: HTML <td id="sample"></td> CSS file #sample { background-image: url(../images/tip.gif); background-repeat: no-repeat; height: 153px; width:215px; display: block; } Quote Link to comment https://forums.phpfreaks.com/topic/52320-solved-background-images-not-showing/#findComment-260931 Share on other sites More sharing options...
csgcarl Posted May 27, 2007 Author Share Posted May 27, 2007 Thanks alot for your help marmite! all sorted now and working fine:) Quote Link to comment https://forums.phpfreaks.com/topic/52320-solved-background-images-not-showing/#findComment-262884 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.