...

View Full Version : Colors



xin
01-24-2007, 07:08 PM
When using colors on a website, is it possible to list several colors in the code so that if someone viewing my site doesn't support the main color, the browser will select the next one in the list? For example, when you want to be sure your choice of font is used, you might have: font-family: Lucida Grande,Palatino Linotype,verdana; in your code.

If the same is applied with colors, e.g: color: #CC0000, #CC33CC, #9933CC; will a browser select from my list if the first color in the list is not supported by the viewers computer? or will it default to black? As I say, I know it works with fonts, but honestly have no idea if it's the same with colors!

(I have chosen web safe colors so far but find they are not giving me the range I need)

_Aerospace_Eng_
01-24-2007, 07:20 PM
Have you actually tried what you are asking? You would see that it doesn't work if you tried it. It should default to black if it can't display a color. There are no ways of providing alternate colors at least not yet. Maybe in CSS3.

xin
01-24-2007, 07:38 PM
There are no ways of providing alternate colors at least not yet. Maybe in CSS3
Oh no! Well let's hope CSS3 does bring that option! I daren't use non web safe colors as my website would look hideous in black! :D

koyama
01-24-2007, 08:03 PM
I don't think anyone pays attention to web safe colors anymore because this is not quite so relevant a concept anymore. But who knows, I could be wrong?

I think you should just go ahead and use the full color palette. The few people out there with very old monitors shouldn't prevent everyone else from seeing the full range of colors.

_Aerospace_Eng_
01-25-2007, 02:53 AM
Most systems now days can display most colors. I don't think its that big of an issue any more.

croatiankid
01-25-2007, 01:52 PM
Yes I haven't heard or seen someone using 256 in at least 6-7 years



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum