Solved

Can you use bgcolor and background attributes with embedded tables?

Posted on 2001-07-27
2
154 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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 …

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now