Re: Color Values

by "Kehvan M. Zydhek" <kehvan(at)zydhek.net>

 Date:  Tue, 8 May 2001 17:45:17 -0700
 To:  "Eric Bednarz" <doublebase(at)wanadoo.nl>,
"Chuck Evans" <chuck.evans(at)click2learn.com>,
"'Heil,
Polly,
EAU CLAIRE,
Finance'" <polly.heil(at)us.nestle.com>,
<hwg-techniques(at)hwg.org>
 References:  asymetrix a2000
  todo: View Thread, Original
Hi!

In addition to what Eric mentions:
| regarding the original question:
| graphical apps display decimal values,
| but html & css need hexadecimal values
both HomeSite and Paint Shop Pro allow conversion from one format to the
other (although Eric's desciption of how to do this using the Calculator
Applet in Windows is just as good). The simplest is Paint Shop Pro, where
you enter the RGB values and get a realtime conversion to Hex, or enter the
Hex code and get the RGB decimal equivalents. This can be done in the Color
Selection Palette of versions 6 and 7 (and 5, I think, but am not sure about
that one). HomeSite allows you to select the decimal RGB values, then puts
them back into your webpage as Hex code, but you can't take the Hex value in
the webpage and get the RGB decimal equivalent. For me, since I typically
have both HomeSite and Paint Shop Pro open while working on pages, it's just
simpler to do the conversion in PSP and see how the colors relate to the
images I'm including, then copy it back into my code.

Regarding the original question by Polly:
| One more question related to my editing project.
| The author included a sample declaration which
| uses RGB values to specify color.  The declaration
| looks like this:
|
| background-color: rgb(255,255,153);
|
| I have never seen this done or used this syntax in
| all the web pages and style sheets that I have
| worked with.  Does anyone have any argument for
| using rgb instead of hex?
the code sample she references is 100% valid for CSS declarations. CSS
allows for named values (red, blue, white, black, grey, silver, etc), RGB
decimal values as shown in the example, or the more standard and generally
space-saving Hex values ("#ffff99" for the example values). It's all a
matter of taste and convenience.

Kehvan

----- Original Message -----
From: "Eric Bednarz" <doublebase(at)wanadoo.nl>
To: "Chuck Evans" <chuck.evans(at)click2learn.com>; "'Heil,Polly,EAU
CLAIRE,Finance'" <polly.heil(at)us.nestle.com>; <hwg-techniques(at)hwg.org>
Sent: Tuesday, May 08, 2001 16:34
Subject: Re: Color Values


| > I'm not a math major so I can't convert 153 to hexidecimal, but the
color
| > value he's looking for is somewhere around #FFFF99.
|
| I'm very far from being a math major either, but it's exactly #FFFF99 :-)
| u can easily convert decimal values to hexadecimal values with a
calculator;
| eg windows:
| accessories>calculator>view>scientific
| check dec, type value, check hex, done
| can be useful sometimes :-)
|
| regarding the original question:
| graphical apps display decimal values,
| but html & css need hexadecimal values
|
| cheerio, Eric
|
|

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.