Click to See Complete Forum and Search --> : Very pesky table problem / browser issue


levorion
10-30-2006, 05:16 PM
Greetings,

This is my first post... I'm a novice web developer and pro drummer running www.ProMusicTeachers.com.

The site is php/mysql, we have a search function smack in the middle of the index page that is set up as a <table>.

The table should have a background image... this is the code I'm using is

<table border="0" bgcolor="#FF9900" background="/images/searchgraphic.jpg" align="center" cellspacing="3" cellpadding="0" width="617">

to create the table, then comes the form. However, the background image shows up only in Safari, but not IE or Firefox. This seems like a very simple tag... and I swear last night it showed up in Firefox too but this morning will not.

Any suggestions?

Much thanks,
Brian

The Little Guy
10-30-2006, 06:55 PM
I don't think it is working in Safari either, but I don't think that you can have background in a table tag, so instead, move it to a td tag

WebJoel
10-31-2006, 11:08 AM
I tend to agree. Haven't used TABLE much in recent years, but bgcolor="" is for TABLE, and background="image.url" is for <TD>. It was always kind of a fluky, flaky thing that Netscape 4 would, if background="image.url" was applied to TABLE, would apply the image to every <TD> too, instead of just the <TABLE>... made for very disparsent effects...
bgcolor="color" and background="image.url" apply nicely to <TD>s however, -color first and it will 'show thru' any transparent parts of the image.url

ErikTheSick
10-31-2006, 03:05 PM
If I may add a suggestion: Do not use hard coded styling information (as you did in the table tag), use CSS instead.

cheers