Help - Search - Members - Calendar
Full Version: Help needed with a table background image problem
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
BangelUK
I'm trying to put a background in my table data section but i#m having no luck. It's been a while since i've made any websites but the last time i did i used this same method and now it's not working. Can anyone help ?

The page i'm working on is http://www.goldwishes.webs.com and i'm trying to get the coding marked in bold to work:

<TABLE WIDTH=1000 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=5>
<IMG SRC="/lay_01.jpg" WIDTH=1000 HEIGHT=363 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=4>
<IMG SRC="/lay_02.jpg" WIDTH=42 HEIGHT=537 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="/lay_03.jpg" WIDTH=923 HEIGHT=52 BORDER=0 ALT="" USEMAP="#lay_03_Map"></TD>
<TD ROWSPAN=4>
<IMG SRC="/lay_04.jpg" WIDTH=35 HEIGHT=537 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=3>
<IMG SRC="/lay_05.jpg" WIDTH=923 HEIGHT=32 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=2>
<IMG SRC="/lay_06.jpg" WIDTH=4 HEIGHT=453 ALT=""></TD>
<TD style="background-image:url(/lay_07.jpg)"></TD>


<TD ROWSPAN=2>
<IMG SRC="/lay_08.jpg" WIDTH=3 HEIGHT=453 ALT=""></TD>
</TR>
<TR>
<TD>
<IMG SRC="/lay_09.jpg" WIDTH=916 HEIGHT=21 ALT=""></TD>
</TR>
</TABLE>
Darin McGrew
Our online validator reports markup errors related to your attempt to use CSS:
http://htmlhelp.com/cgi-bin/validate.cgi?u...mp;warnings=yes

In particular, you've got
CODE
<BODY BGCOLOR="C88370" background-image:url('/autumn_bg.png'); LEFTMARGIN=0 ...>
...
<TD background-image:url(/lay_07.jpg)">
rather than
CODE
<BODY BGCOLOR="#C88370" style="background-image:url('/autumn_bg.png');" LEFTMARGIN=0 ...>
...
<TD style="background-image:url(/lay_07.jpg)">
BangelUK
QUOTE(Darin McGrew @ Jun 5 2009, 03:28 PM) *

Our online validator reports markup errors related to your attempt to use CSS:
http://htmlhelp.com/cgi-bin/validate.cgi?u...mp;warnings=yes

In particular, you've got
CODE
<BODY BGCOLOR="C88370" background-image:url('/autumn_bg.png'); LEFTMARGIN=0 ...>
...
<TD background-image:url(/lay_07.jpg)">
rather than
CODE
<BODY BGCOLOR="#C88370" style="background-image:url('/autumn_bg.png');" LEFTMARGIN=0 ...>
...
<TD style="background-image:url(/lay_07.jpg)">




Ive tried it both ways and it's not working
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.