We help IT Professionals succeed at work.

Background images for a table?

JAGDIGITAL
JAGDIGITAL asked
on
195 Views
Last Modified: 2013-12-25
can you put background images in a table? I know how to do it for a page but can this be done?
Comment
Watch Question

Commented:
Yes, but first you have to decide what constraints you want to put on the browser of the viewer (version).
yes. it can be done. example:
<table width="100%" background="image.gif">
    <tr><td>....</td></tr>
</table>

Author

Commented:
Thanks but what I meant was can you have an image behind a table that contains text (html). Sort of like -layering the text over the image?
I guess Style Sheets would be an option?

Commented:
Sure, you can put an image in the background, just like with the page
(if its a new enough browser to display etc etc)
Same syntax as with <BODY ... >
Isn't that the answer you just got?
Could you explain better what you mean if the code isn't what you want?

<BODY BACKGROUND="image1.gif">

Here is a table with a new background...

<TABLE WIDTH=50% ALIGN=CENTER BACKGROUND="image2.gif">
<TR>
<TD>
And here is the left box.
</TD>
<TD BACKGROUND="image3.gif">
And here is the right box...
In newest browsers, it will have a different
<BR>
Background again.
</TD>
</TR>
</TABLE>

And back to the origional background image.

</BODY>

Commented:
Yes for Internet Explorer, no for Nestscape.
The answer from Patria is correct:
<table width="100%" background="image.gif">
    <tr><td>....</td></tr>
</table>

.but it only works with Internet Exlorer V4. Sorry, Netscape simply doesn't support this feature.

Commented:
millarch : don't you think I should get My points. After all, why should JAGDIGITAL give you the points when I have given the same answer but got rejected ?

Author

Commented:
Well I don't want to upset anyone so if ANITA reposts the question I will award her the points!
THANKS JASON

Commented:
The "points" are not the issue here... I just wanted to emphasize that AnitaP or Patricia (what is the right name anyway?) is partially right and her solution works fine for IE.

Author

Commented:
OK...my mistake!
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.