By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

Transparent

P: n/a
I know transparent is an acceptable value for color, but under what
circumstances? Where is it described on w3c.org?
Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
in post <news:3f**********************@news.rcn.com>
Neal said:
I know transparent is an acceptable value for color,
its not.
Where is it described on w3c.org?


http://www.w3.org/TR/REC-CSS2/colors.html

--
brucie
26/December/2003 08:49:32 pm kilo
Jul 20 '05 #2

P: n/a
"brucie" <sh**@bruciesusenetshit.info> wrote in message
news:bs************@ID-117621.news.uni-berlin.de...
in post <news:3f**********************@news.rcn.com>
Neal said:
I know transparent is an acceptable value for color,


its not.
http://www.w3.org/TR/REC-CSS2/colors.html


Huh! It'd never ocurred to me that 'transparent'
was not a valid _color_, but then, ..I'd never
wanted to set text invisible.

Why would you want to do that, Neal?

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
Jul 20 '05 #3

P: n/a
Andrew Thompson wrote:
> I know transparent is an acceptable value for color,
Huh! It'd never ocurred to me that 'transparent'
was not a valid _color_, but then, ..I'd never
wanted to set text invisible. Why would you want to do that, Neal?


body { background-color: black; background-image: url(pretty.png); }
div { background-color: black; }
div#somediv { background-color: transparent; }

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #4

P: n/a
Neal wrote:
I know transparent is an acceptable value for color, but under what
circumstances? Where is it described on w3c.org?


Ah... it depends.

In CSS 2, transparent is not an acceptable value for a color, however some
properties which accept a color as their value _also_ accept the
transparent keyword. This is desribed in the list of values for that
property.

For example:

'background-color'
Value: <color> | transparent | inherit

However, in CSS 3, this (may) changes, and 'transparent' becomes a colour.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #5

P: n/a
"David Dorward" <do*****@yahoo.com> wrote in message
news:bs*******************@news.demon.co.uk...
Neal wrote:
I know transparent is an acceptable value for color, but under what
circumstances? Where is it described on w3c.org?


Ah... it depends.

In CSS 2, transparent is not an acceptable value for a color, however some
properties which accept a color as their value _also_ accept the
transparent keyword. This is desribed in the list of values for that
property.

For example:

'background-color'
Value: <color> | transparent | inherit

However, in CSS 3, this (may) changes, and 'transparent' becomes a colour.


Ah, now I remember. You can use it for background-color because it's the
default. It would make no sense to have transparent "color" for the text,
hmm.
Jul 20 '05 #6

P: n/a

"brucie" <sh**@bruciesusenetshit.info> wrote in message
news:bs************@ID-117621.news.uni-berlin.de...
in post <news:3f**********************@news.rcn.com>
Neal said:
I know transparent is an acceptable value for color,


its not.


I used "color" as a catch-all word while you thought of it as a specific
property as differentiated from say background-color. That's where our wires
were crossed.
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.