• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Table problem under Netscape 4.75

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have this problem I cannot resolve. I'm trying to create a table with background image and a colored cell. The code below shows what I'm trying to achieve. It works fine on IE. Under Netscape the background image is shown but the cell is not colored unless I remove the image.
<HTML>
<BODY>
<TABLE BORDER=1 BACKGROUND="whatever.jpg">
<TR><TD>Normal cell</TD></TR>
<TR><TD BGCOLOR="#FF0000">Colored cell</TD></TR>
</TABLE>
</BODY>
</HTML>

Thanks in advance,
Tom
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Tom M",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I checked the references and in html 3.2 neither background or bgcolor are listed as attributes of either table or td. in html 4, they are both listed as attributes of table and bgcolor is listed as attribute of td. however it says they have been deprecated(it says to use styles instead). by rights it should work in both but I have found several things that should work but only work in IE(including java 1 code). also many things that shouldnt work will in IE. to make it work try using styles
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic