Solved

Can you use bgcolor and background attributes with embedded tables?

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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…
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…

856 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