...

View Full Version : How to place a background image in <TD> cell?



mattyboi
03-07-2006, 06:30 PM
I've tried everything I can think of to get this background image to show up within a <TD> tag. Can you guys see any reason why its not showing up?


<td width="918" height="319" style="background-image: url ('images/bodybkgrnd-2.gif'); background-repeat: no-repeat; background-position: center;">

Heres the link to the page live:

www.phoenixmason.com/newsite/patio.php

Thanks

mark87
03-07-2006, 06:39 PM
Try this, I only used the full url for testing so you can take that out. Seems to work though...

style="background: url(http://www.phoenixmason.com/newsite/images/bodybkgrnd-2.gif) no-repeat center"

coothead
03-07-2006, 06:43 PM
Hi there mattyboi,

the cause of the problem is the whitespace between url and the '('. Close that up and it should be OK.

coothead

mattyboi
03-07-2006, 06:46 PM
Thank, you guys are great! It was driving me crazy:eek:

ronaldb66
03-08-2006, 08:42 AM
Also, it's recommended not to quote the URL itself; if I recall correctly, some browsers (IE?) have problems with this.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum