bg images in tables...

They have: 21 posts

Joined: Mar 2000

What are the requirements to use a background image in a table? Im pretty sure I put in the code right. Must be my lamah DC again.

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

What about
<td background="YourImage.gif"></td>

Or isn't that what you mean???

Jack

They have: 296 posts

Joined: Sep 1999

Not being much help but rather cuirous. Did Suzzane not mention that images as a background inside a table are bad? The only reason i butted in here was because I was reminded on an idea. Can you use images as a background inside a table without any problems?

Cheers

~Vy~

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

I never had problems.
So no more butting, vy22 (LOL)

Jack

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

You can use background images inside a table, and inside a table cell, but there are some issues.

Notably, some older browsers don't support background images for table cells, so if you use an image, be sure the text is legible without it. You may need to specify a bgcolor as well in order to get it to render properly in nested tables in Netscape.

In order to get a background image that doesn't repeat in a relative table cell, use a DIV and CSS to set the background image in the DIV.

Also, if you have a background in Netscape in a table cell, and then you have a nested table in that cell, you may get repeated background in every cell of the new table (or in portions thereof) that don't have a bgcolor or background set. Setting background=none in those cells/table will resolve this issue.

Happy tabling!

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.