Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-16-2002, 09:58 PM   PM User | #1
Jerome
Regular Coder

 
Join Date: Oct 2002
Posts: 299
Thanks: 0
Thanked 0 Times in 0 Posts
Jerome is an unknown quantity at this point
Colordepth

Hi,

What does colordepth do exactly?

Can I put it like this:

BODY{colordepth:high;}

Thanks,
Jerome
Jerome is offline   Reply With Quote
Old 12-16-2002, 11:33 PM   PM User | #2
krycek
Regular Coder

 
Join Date: Nov 2002
Location: Bristol, UK
Posts: 932
Thanks: 0
Thanked 0 Times in 0 Posts
krycek is an unknown quantity at this point
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 [::
__________________
ithium | SOAPI | SDP | PTPScript manual
"ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."
krycek is offline   Reply With Quote
Old 12-17-2002, 12:43 AM   PM User | #3
chrismiceli
Regular Coder

 
Join Date: Sep 2002
Location: Louisiana
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
chrismiceli is an unknown quantity at this point
my input, you are right, but just if anyone was wondering, you can test colour depth with javascript
screen.colorDepth
chrismiceli is offline   Reply With Quote
Old 12-17-2002, 01:02 AM   PM User | #4
krycek
Regular Coder

 
Join Date: Nov 2002
Location: Bristol, UK
Posts: 932
Thanks: 0
Thanked 0 Times in 0 Posts
krycek is an unknown quantity at this point
heheh yeah I should have said that

good call chris

::] krycek [::
__________________
ithium | SOAPI | SDP | PTPScript manual
"ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."
krycek is offline   Reply With Quote
Old 12-17-2002, 05:17 PM   PM User | #5
Jerome
Regular Coder

 
Join Date: Oct 2002
Posts: 299
Thanks: 0
Thanked 0 Times in 0 Posts
Jerome is an unknown quantity at this point
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
Jerome is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:09 PM.


Advertisement
Log in to turn off these ads.