Solved

Can you use bgcolor and background attributes with embedded tables?

Posted on 2001-07-27
2
183 Views
Last Modified: 2010-04-09
When I try the code below, IE shows the background image overlayed with the red cell (you can see both). BUT netscape just shows the background (not any of the red cell).... is there a work around for netscape?

<HTML><BODY>
<TABLE>
<TR>
<TD  background="images/leftBorder.gif"  >
<TABLE><TR><TD bgcolor=red>HELLO</TD></TR></TABLE
</TD>
</TR>
</table>
</BODY>
</HTML>
0
Comment
Question by:keithedward
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 8

Accepted Solution

by:
klykken earned 50 total points
ID: 6327814
in netscape nested tables will inherit the background image deeper into the table structure.
The fix for netscape on this is to apply background="" on the nested table elements:

<HTML>
<head>
<title>your title</title>
</head>
<BODY>
<TABLE>
<TR>
<TD background="images/leftBorder.gif">
<TABLE background=""><TR><TD background="" bgcolor=red>HELLO</TD></TR></TABLE
</TD>
</TR>
</table>
</BODY>
</HTML>
--
klykken
0
 
LVL 8

Expert Comment

by:klykken
ID: 6327825
This is also discussed in this qusetion:
http://www.experts-exchange.com/jsp/qShow.jsp?ta=css&qid=20156366

--
klykken
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question