Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Background color in <DIV> in Netscape 4.7x


  • From: javascript@xxxxxxxxxx (Muchacho, Laurent (TWIi London))
  • Subject: [Javascript] Background color in <DIV> in Netscape 4.7x
  • Date: Fri, 18 Oct 2002 09:35:19 +0100

Hi Reuben

The only thing you need to do for putting a background-color to a div in NS4
is:

<DIV STYLE="background-color:blue;layer-background-color:blue"> 

but I don't recommend you to use inline style with NS4 too much (buggy)

if you like to use an image on the background as 

<DIV STYLE="background-image:
url(images/yourimage.gif);layer-background-image:
url(images/yourimage.gif);"> 

use the same layer in front and this will work fine 

Laurent 




-----Original Message-----
From: Reuben D. Budiardja [mailto:reubendb@xxxxxxxxxxxxxxxxxxxxx]
Sent: 17 October 2002 21:52
To: javascript@xxxxxxxxxx
Subject: [Javascript] Background color in <DIV> in Netscape 4.7x


Hi,
Sorry if this is a bit off topic. I need help in figuring out how to put a 
good bacground color for a <DIV> section so that it renders correctly in 
Netscape 4.7. Just putting, eg. 
<DIV STYLE='background-color:blue'> 

Makes netscape only renders the background when there is text on the 
foreground. To know what I mean, here are 2 screenshoots. The first one is 
taken with netscape 4.7. The second one the result I want, which is rendered

correctly by Mozilla / Netscape 7. Any help is greatly appreciated.

http://arcturus.phys.utk.edu/webdevel/netscape4.png
http://arcturus.phys.utk.edu/webdevel/mozilla.png

I actually use css on the page on screenshoot, but the result is the same in

Netscape 4. The <DIV STYLE='background-color:blue'> gaves me the same bad 
rendering in NS4. I can of course not using CSS if that really helps, since 
the page is generated dynamically from the server-side anyway.


Thanks.
Reuben D. Budiardja


_______________________________________________
Javascript mailing list
Javascript@xxxxxxxxxx
https://lists.LaTech.edu/mailman/listinfo/javascript


DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information.  It is intended to be conveyed only to the designated
recipient(s) named above.  If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system.  Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.