Solved

Can you use bgcolor and background attributes with embedded tables?

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

747 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

13 Experts available now in Live!

Get 1:1 Help Now