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 (Reuben D. Budiardja)
  • Subject: [Javascript] Background color in <DIV> in Netscape 4.7x
  • Date: Fri, 18 Oct 2002 10:37:52 -0400

On Friday October 18 2002 04:35 am, Muchacho, Laurent (TWIi London) wrote=
:
> Hi Reuben
>
> The only thing you need to do for putting a background-color to a div i=
n
> NS4 is:
>
> <DIV STYLE=3D"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=3D"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

Thanks a lot, this is what I need.=20

Another quick question, if I put this in CSS:
A:hover {background: #003366; text-decoration: none; display:block}
the layer changes size and put an extra space under the link I am hoverin=
g on=20
(I belive hover only works for IE > 5 and NS > 6 or Mozilla > 1.0.0).

Why does this happen? You can look here:=20
http://arcturus.phys.utk.edu/webdevel/js_menu/menuparser2.php

Thanks a lot.
Reuben D. Budiardja





>
>
>
> -----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 pu=
t a
> good bacground color for a <DIV> section so that it renders correctly i=
n
> Netscape 4.7. Just putting, eg.
> <DIV STYLE=3D'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 sa=
me
> in
>
> Netscape 4. The <DIV STYLE=3D'background-color:blue'> gaves me the same=
 bad
> rendering in NS4. I can of course not using CSS if that really helps, s=
ince
> 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 recipi=
ent
> 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 fro=
m
> 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.
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript