A dense question here... anyone point to a mini-cheat sheet for the hex codes inside color.css? I can find the 6 character codes, but am trying to sort out the 3 characters and how they work with each other. Hit and miss is no prob, but changes don't seem to follow logic now and then. Operator error I know.
Posts: 16504
I believe, not 100% sure it's just an abbreviation:
#888 = #888888
#ebe = #eebbee
#cbc = #ccbbee
#c00 = #cc0000
etc.
Posts: 397
May I dig my dense hole a little deeper. I thought so too. Can you expand on the logic of this a tad? #888, ok. But I don't follow the rest of the examples. First three chars? Every other char? Am not tracking it, but that is operator error, me.
Posts: 16504
drhiii, We were getting off topic so I split this into this new thread:
If my logic is correct it's every other char and only works for hex notication that is made of 3 pairs of chars, where each pair is the same.
Example #888888 is made up of 3 pairs of 88 so the abbreviation would be #888, #884455 is made up of 88, 44 and 55, so the abbreviation would be #845. However, #e4e4e4 cannot have an abbreviation.
That's my understanding, clear as mud as it may be. I could be completely off base too. I tried googling for more info, but couldn't find much at all. Tons of info about hex notation for colors, but not a lot of about 3 digit abbreviations.
Posts: 397
Agree. My question took the thread in a diff direction.
I also searched for 3 digit abbreviations to no avail. You would think this would pop up somewhere. But it is clear and that's what I thought too. Now to unravel the puzzle in the .css.
Tx a mil. Helps volumes.
Posts: 16504
I like to have an image editing app I can input those hex code into to see what the color is, or select a color I like and find it's hex code.
Posts: 397
Do you know of one that will allow this 3 digit sequence? I tried three earlier that wouldn't cooperate....
tx
Posts: 16504
The GIMP ;) www.gimp.org
After getting it installed, start a new image, doesn't have to be anything special. Click on the the Dialogs pull-down, then click on Colors (about mid-menu).
A FG/BG Color dialog will popup, click on the second from the last button on the top row, if you hover over it, it will says Scales in the tooltip. You can now enter the HTML notation in the box near the bottom.
Posts: 397
Ah. Of course. I was looking for a small proggie, but this of course is correct too. I will be getting off the dense-o-meter shortly.
Posts: 16504
No worries. There probably is, I just know you can do this with The GIMP.