7:33:58 AM
Thursday
Sep 09
Su M Tu W Th F Sa
567891011
12131415161718
19202122232425
262728293012
3456789

Play My Typing Game

View Some of My Artwork

CSS Commands, Syntax & Text
Typically when talking about or dealing with optic light, all colors are created by varying amounts of three colors: red, green & blue, commonly abbreviated as RGB. The color black is created by the absence of any and all red green or blue light. The color white is created by the presence of the maximum possible red green or blue light. Each of these individual amounts can be respected as integer ranging from 0-255, or can be represented as a hexadecimal code. Hexadecimal color codes must precede with a hash mark (#) and are usually always 6 characters long. The Red Green and Blue are represented each as 2 character hex, the 0-255 which I mentioned earlier is now represented by 00-FF when thinking in hex. I believe we are given approximately 65,000 different possible color choices.

<style type="text/css">
.red1 { color: red; } /* textual */
.red2 { color: rgb(255,0,0); } /* using the css rgb function */
.red3 { color: #ff0000; }  /* typical hex */
.red4 { color: #f00; } /* shorthand hex */
</style>


Since hex color codes are always 6 characters long. And the pattern goes: first two chars represents amount of red, next two chars represents amount of green, etc. If there should be redundancy only in a sense that the 2 characters are identical, and this is true for each Red, Green & Blue, then you may write the hex color code in shorthand. Example: #66aa33 == #6a3

With that in mind we can quickly create the following 8 colors:
ColorRGB
Black000
Red100
Green010
Blue001
Yellow110
Magenta101
Cyan011
White111


Years ago I found a list of 247 defined web safe colors that had names and rendered in MSIE. Its kind of a neat list but I showed off one of my websites at a client's location under Safari once and it didn't know most of the textual color names I used. The w3c has defined that only 16 colors have textual names defined in the specs: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.


Read Previous:
Image Maps - multiple links on a single image
Read Next:
Loops
Table of Contents


Give a listen to my music...
My Best Recordings
How my services and skills can help you:
  • Global (via Email/Skype/AIM(ichat)/Yahoo)
    • Web Development Consulting
    • Custom Web App Development (PHP/MySQL/jQuery/CSS) Cross-Browser & OS
    • Cellphone App Development (Android/MobileWeb)
    • Music Lessons & Education for Beginner Guitar, Piano, Bass, which transfers over to many other instruments I am comfortable playing but not yet at teaching.
    • Music - Soundtrack Composition & Voice Work
  • Local
    • Most all the above, but also:
      • Music Performance (Harp, Voice, Guitar, Piano, Bass, Latin Percussion)
      • Recording Live Music Audio
      • Video Streaming live music and other live events anywhere that can provide wifi
      • Training Video Streaming to your venue's trusted soundperson
Skills:
  • Global (via Email/Skype/AIM(ichat)/Yahoo)
    • Web Development Consulting
    • Custom Web App Development (PHP/MySQL/jQuery/CSS) Cross-Browser & OS
    • Cellphone App Development (Android/MobileWeb)
    • Music Lessons & Education for Beginner Guitar, Piano, Bass, which transfers over to many other instruments I am comfortable playing but not yet at teaching.
    • Music - Soundtrack Composition & Voice Work
  • Local, Most all the above, but also:
    • Music Performance (Harp, Voice, Guitar, Piano, Bass, Latin Percussion)
    • Being your venue's soundman
    • Video Streaming live music and other live events anywhere that can provide wifi
    • Training Video Streaming to your venue's trusted soundperson