How to use custom colors for text and backgrounds on your pages
  Technical note:    10022
  Created:           07/24/95 by Brian
Version 1.1 of the Netscape Navigator is able to recognize new options
to the HTML "<BODY>" tag, which let you specify custom colors for the
text and background on your web pages.  Full documentation about how
to use these new options is available on
http://netscape.1command.com/support/net_sites/bg/, and there are several
examples of this on "http://www.infi.net/wwwimages/colorindex.html".

Basically, the way you specify custom colors is like this:

    <BODY TEXT="#rrggbb" BGCOLOR="#rrggbb"
    LINK="#rrggbb" VLINK="#rrggbb" ALINK="#rrggbb">
     ...
    </BODY>

where TEXT is the color of the text on the page (normally black),
BGCOLOR is the background color (normally grey), LINK is the color of
unvisited link text (normally blue), ALINK is the color of link text
as you click on it (normally red), and VLINK is the color of visited
link text (normally purple).

Colors are specified as "#rrggbb", where "rr", "gg", and "bb" are
hexadecimal values from 00 to FF which specify how much red, green,
and blue is used in your color.  "#FFFFFF" is white, "#000000" is
black, "#FF0000" is bright red, "#550000" is dark red, "#FF00FF" is
bright magenta, and so forth.

You can also use BACKGROUND="filename.gif" to specify a GIF or JPEG
image which will be used as your background pattern.  This image will
be tiled across your background; it is not possible to display it
non-tiled.

Netscape Navigator 1.1 had a bug in it whereby it would acknowledge
every "<BODY BGCOLOR=...>" tag (as well as every "<TITLE>" tag) in
your HTML file, and would change the background color (or the title)
several times if you had several of these tags on your page.  This bug
has been fixed in Netscape Navigator 1.2, which correctly ignores any
"<BODY>" tags in your file past the first one.

On "http://www.phoenix.net/~jacobson/rgb.html" is a large number of
"color swatches" that demonstrate what the values are for various
colors.

Back to: Netscape Navigator Technical Notes

MacOS/ Windows
Netscape 0.x browser archive Ξ Netscape 2.x browser archive Ξ Netscape 3.x browser archive
Netscape 4.x browser archive Ξ Netscape 4.5 browser archive Ξ Netscape 4.6 browser archive
Netscape 4.7 browser archive Ξ Netscape 6.x browser archive Ξ Netscape 6.2 browser archive


© 1995 Netscape, All Rights Reserved.
© 1996-2008 H.R. Communications Corp. networks, All Rights Reserved
This site powered by H.R. Communications Corp. networks Secure servers.