...

View Full Version : Colordepth



Jerome
12-16-2002, 09:58 PM
Hi,

What does colordepth do exactly?

Can I put it like this:

BODY{colordepth:high;}

Thanks,
Jerome

krycek
12-16-2002, 11:33 PM
no

colordepth is how many bits your computer is using to make its display

for instance:

8 bit = 2^8 = 256
16 bit = 2^16 = 65536
24 bit = 2^24 = 16777216
32 bit = 2^32 = 4294967296

so if you are using 24 bit colour, you will have 16.7million colours available to choose from

you cannot SET it on your website because it is how the user's computer is set up

but you can detect it if you are interested

::] krycek [::

chrismiceli
12-17-2002, 12:43 AM
my input, you are right, but just if anyone was wondering, you can test colour depth with javascript
screen.colorDepth

krycek
12-17-2002, 01:02 AM
heheh yeah I should have said that :)

good call chris :thumbsup:

::] krycek [::

Jerome
12-17-2002, 05:17 PM
Thanks,

what I was wondering however is

when I make a background with paintshop pro, the colors look different on my site (viewed with IE 5.0)

Even when I use an already existing background from another site and I use it for my own site the colors are a little different?

I put in a seperate file:

body{background:#000000 url(bg.gif)}

I do not feel I miss something, do I?

Thanks,
Jerome



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum