Forum Moderators: open

Message Too Old, No Replies

TABLE tag with Background Image

is it really supported? should i use it?

         

Newnewbie

3:02 pm on Sep 30, 2002 (gmt 0)

10+ Year Member



I need to use a table with a background image. Where can I find what browsers will support that? Is it used that often?

jetboy_70

3:37 pm on Sep 30, 2002 (gmt 0)

10+ Year Member



Table backgrounds are perfectly valid, and you shouldn't haven't any problems displaying them in recent browsers.

The only problem browser is Netscape 4 (of course) which will tile a table background in each table cell. This can be avoided by using a transparent Gif as a background on individual table cells.

If you're using style sheets (which you really should be) try something like:

.tablebackgroundclass {background-image:url(/pathto/background.gif)}

and apply it to your table tag:

<table class="tablebackgroundclass"> ... </table>

Newnewbie

6:45 pm on Sep 30, 2002 (gmt 0)

10+ Year Member



Cool! I'll give it a try. Thanks for the suggestions!

martinibuster

8:25 pm on Sep 30, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



This is a timely suggestion for me, too!
Thanks!

Uh-oh, still blowing up. Will try css.