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

03-07-2006, 05: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:



03-07-2006, 05: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"

03-07-2006, 05: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.


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

03-08-2006, 07: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