Solved

Can you use bgcolor and background attributes with embedded tables?

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 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