Hi Everyone, I know that there are lot of good programmers on DP. I need help with getting a background image to show up. Provide below is some code. The code highlighted in red contains the image that will not show. First person to figure out the problem will get $8.00 from me <tr> <td valign="top"><table width="641" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="3" valign="top"></td> <td valign="top" style="width:636px; height:84px; float:left; padding:0; margin:0; background:url(image/bottom-bg-2.jpg) 0 0 no-repeat;"><table width="636" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="433" valign="top"><img src="image/save-10%.jpg" alt="" /></td> <td width="10" valign="top" style="padding:0; margin:0; background:url(image/img-left-bg.jpg) 0 0 repeat-y;"></td> <td width="193" valign="top"><img src="image/img-4.jpg" alt="" /></td> </tr> </table></td> <td width="2" valign="top"></td> </tr> </table></td> </tr> Thanks in advance Mike
Hi, I'm a bit confused on what you mean by direct image url. Currently I have the index file and images within a folder on my computer documents. All of the images show up except for this one. The image file name is "bottom-bg-2.jpg" I'm pretty sure the coding has something to with it not working. I looked over everything and seems to be fine but for some reason the image doesn't show up. Thanks, Mike
If the image exists in that location, then there's no reason for it to not show correctly. Could you perhaps upload it online & show us please?
Try using the full path length to the image instead of image/bottom-bg-2.jpg use http://www.yourdomain.com/image/bottom-bg-2.jpg thanks
There are two ways to do this , 1. Use this for <td> <td width="636" height="84" style="background-image: url('image/bottom-bg-2.jpg'); background-repeat: no-repeat; background-position: center;"> Code (markup): or 2. Define the parameters in css style sheet #tdimage {background-image: url(image/bottom-bg-2.jpg);} Code (markup): with the specific height, width , position you need there . and use this to call it within the <td> <td id="tdimage"> Something here</td> Code (markup): hope this helps
<td valign="top" style="width:636px; height:84px; float:left; padding:0; margin:0; background:url(image/bottom-bg-2.jpg) no-repeat;"> it should work, but make sure you have a right image path in background:url()