Help - Search - Members - Calendar
Full Version: Image for Tablebackground not showing up?
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
MikeI
<P align=center>

<TABLE border=0 cellSpacing=0 cellPadding=100>

<TR>

<TD vAlign=top background="www.imagelocation.com/images/background.jpg" width=1190 height=4370>
<p>
html code.....
</td>
</tr>
</table>

code is for an ebay listing, dont think this matters... please help me correct the code.

Thanks in advance.

Mike
Darin McGrew
CODE
background="www.imagelocation.com/images/background.jpg"
is not the same thing as
CODE
background="http://www.imagelocation.com/images/background.jpg"

MikeI
Thank you for your reply, I checked my code and it does in fact have what you suggested.

http://www.imagelocation.com/images/background.jpg.

Could there be something else I am missing?

The image loads up fine if I type the image url into IE, Firefox, etc.
pandy
What about showing us the actual code?
MikeI


<TABLE border=0 cellSpacing=0 cellPadding=100>

<TR>

<TD height=4370 vAlign=top background=http://www.incredible-gems.com/images/teinback.jpg width=1190><br><font face=verdana><B><U>Application:</b></u> <br><b><u>Part #</b></u> 3203-EX025<br><b><u>Tip (mm) </b><u> 96<br><b><u>Piping</b></u> 55<br><b><u>Notes:</b></u> 9: Rear Section, Coated Stainless Steel Piping<br><b><u>MSRP:</b></u> $ 375<br><br>
pandy
You should quote that URL. Nevertheless, if I complete the code you posted and paste it into a HTML document, the background shows. So what about giving us the URL to the page that gives you problems?
sk123
QUOTE(pandy @ Oct 13 2009, 06:44 AM) *

You should quote that URL. Nevertheless, if I complete the code you posted and paste it into a HTML document, the background shows. So what about giving us the URL to the page that gives you problems?



I have the same problem. For some reason my background image doesn't show up. The image is there, and it looks fine offline in my HTML editor, but for some reason its not visible on the web. I tried everything, can someone help me?

The code is:
QUOTE
<tr bgcolor="#ffffff">
<td colspan="3" background="images/box_solar.jpg;" style="background-repeat: no-repeat;" width="737px" height="211px"><br /><span class="h_b">MicroFIT Rooftop Installations</span><br />
<p class="body_b">If you own a residential house or small building, this is the option for you. Trillium Solar provides a full-turnkey service, taking care of all aspects of the projects. Trillium will install anywhere from 1-10 kilowatts worth of solar PV, depending on your roof-size and budget constraints. There is also financing available. Installing a microFIT system will allow you to take advantage of Ontario's feed-in tariff program, ensuring constant financial payback from your solar electric installation.</p>
</td>
</tr>

My Webpage

Thanks in advance!!
pandy
Semicolon is a delimiter in CSS. You use the HTML attribute 'background' and the semicolon makes the URL invalid.

Either go with the background in HTML like so...
HTML
<td colspan="3" background="images/box_solar.jpg" style="background-repeat: no-repeat;"...>

Or since you already partially use CSS. you can just as well move the background image there too.
HTML
<td colspan="3" style="background-image: url(images/box_solar.jpg); background-repeat: no-repeat;"...>

Or shorter like son(change the color to what's suitable).
HTML
<td colspan="3" style="background: #fff url(images/box_solar.jpg) no-repeat"...>


You should use a doctype and then you should validate your markup. That will help you find more errors.
http://htmlhelp.com/tools/validator/doctype.html
http://htmlhelp.com/tools/validator/
pandy
Also, this is one of the reasons why we ask for a URL to sample page. Neither of your examples above shows the markup you really use. I'm not picking on you, just explaining. wink.gif
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-2009 Invision Power Services, Inc.