Forum Moderators: not2easy
.callouti {
margin : 0px;
padding : 0px 10px;
border-left : 1px dotted #BBB;
white-space : nowrap;
color : #777;
background : transparent;
}
Can anybody tell me why the colors have 3 numbers and a pound sign? I guess are those RGB colors. I usually use hex colors. I think this is a new stylesheet. How can you tell what browsers it's supported in?
THX!
Checkout this page at w3.org:
[w3.org...]
You are correct - 3 numbers is just RGB, as opposed to RRGGBB.
Can anybody tell me why the colors have 3 numbers and a pound sign? I guess are those RGB colors. I usually use hex colors. I think this is a new stylesheet. How can you tell what browsers it's supported in?
Your colors should always start with a
#unless your expressing it in the
rgb()format. Also, you're always using RGB. Each color is expressed as a combination of red, green and blue. You can have 255 hues of either red, green or blue. If you were using the
rgb()format, then pure red, for example, would look like this:
rgb(255,0,0)
255 is the highest value you can use, it can also be expressed in hex, which you are familiar with like so:
#FF0000
When it's in the format of
#AABBCC, then you can shorten it to
#ABC. Any color value that you can do this to, is also a web safe color. Other color values such as
#B1EB4Cdon't follow the same scheme therefore it's not a web safe color. Anyways, to recap:
#FF0000
rgb(255, 0, 0)
red
are all the same thing. They are also also all RGB. Does that make sense? :)
The list of HTML4 keyword color names is: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. The color names are case-insensitive.
Adam
I just fail to understand why people are calling it the pound sign, when it quite obviously isn't.
I don't think it's black and white; i've often heard # referred to as "pound"... it's an American thing...
[askoxford.com...]
Jordan
In the United States, it used to be the practice to use # to indicate weights in pounds on bills of lading.... In Britain they use a capital ‘L’ with a horizontal stroke through it (£) to denote their currency, the pound sterling; they use lb. to denote their unit of weight, the avoirdupois pound.
also www.wordsmith.org/awad/archives/1003 (scroll down to Wed. Oct. 8)
The symbol # is derived from a shorthand way of writing lb, the abbreviation for the Latin libra (balance), just as $ is a shorthand way of writing US.... The "#" is also known as a pound sign, crosshatch, number sign, sharp, hash, crunch, mesh, hex, flash, grid, pig-pen, gate, hak, oof, rake, fence, gate, grid, gridlet, square, and widget mark.