Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dumb question please don't flame


hunter69

Recommended Posts

hi guys

I know this is a real dumb question so please don't flame me.

I am trying to change the colours on my website and I believ this all has to be done in stylesheet.css but where do I get the definitions for the colours? (you know the #ffffff, or #fff03n stuff)

 

THANKS

Link to comment
Share on other sites

Any book that purports to teach you about programming HTML or CSS will have a list of named colors and perhaps samples of them.

 

To do it yourself, the numbers are in groups of 6 hexadecimal values (0-9 a-f meaning 0-15). They are three pairs: rrggbb, with rr for red, gg for green, and bb for blue. 00 is minimum brightness (fully off), ff (decimal 255) is maximum brightness (fully on), and any other value 01 02 03 ... fd fe can be used in-between. 000000 is black, ffffff is white, ff0000 is bright red, 00ff00 is bright green, 0000ff is bright blue, 00ffff is cyan/turquoise, 808000 is dim yellow (brown), etc. Any case where the three numbers are the same (e.g., c0c0c0) is some shade of gray.

 

Most displays these days can handle the full range of 16.7 million colors possible. In some HTML books you will find a caution about restricting yourself to a fixed set of a hundred or so colors, due to old limited palette display adapters and video displays, but these are now rare. If you don't want to spend a lot of time agonizing over the choice between c0c0bf and c0c0c1, just pick the "web safe" color of c0c0c0.

 

If you want to replicate a color you see in some image, fire up Photoshop or The GIMP and capture the image, then use the "eyedropper" tool to sample the color you like. The program will tell you the rrggbb code for it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...