What does the following values mean below?
screen and (color-index: 256) //value 1
screen, (color-index: 256) //value 2
(color-index: 256) //value 3
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Value 3 is the simplest one:
(color-index: 256)matches any device with 256 colors.Value 1 combines that with the more common
screenmedium, so you’re only matching screens with 256 colors (as opposed to, say, audio readers where “256 colors” is a nonsensical thing to look for anyway).And Value 2 has a comma, which is recognizable from other aspects of CSS. We might write
p, h1 { color: purple; }indicating that if an element is either apOR anh1the rule applies. Here it’s a device that’s ascreenor has 256 colors.You may find https://developer.mozilla.org/En/CSS/Media_queries instructive.