Forum: Community Center


Subject: Need a Coder.

Khai opened this issue on Apr 07, 2006 ยท 26 posts


svdl posted Fri, 07 April 2006 at 10:10 AM

Khai: just a little tip on color codes. (Many forum members know the following stuff by heart. Please don't be annoyed). Color code #9aa5ab for example. The # stands for: this is a code. Thest of the code are 6 hexadecimal digits. Actually 3 groups of 2 hexadecimal digits: 9a a5 ab These hexadecimal numbers represent R, G and B values. Now how do you make use of this info? Fire up any 2D program. Even the lowly Windows Paint will do the job. Bring its color picker forward and pick a color you like. The Red, Green and Blue values you see in the lower right corners are what you want. Problem is, they're in decimal notation, and HTML/CSS wants colors in hexadecimal notation. An easy way to convert from decimal to hexadecimal is using the Calculator included with Windows. Set it to Scientific view, set the radio group (Hex, Dec, Oct, Bin) to Dec, enter your decimal number, then set the radio group to Hex. The number changes: that's the hexadecimal number you want. So now you can get your color code. The color I picked in the attached screenshot of the Windows Paint color picker (R 44, G 98, B 118) will translate into (R 2C, G 62, B 76), resulting in color code #2C6276. Hope this helps. Edited to correct one of the numbers.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff