473,379 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Transparent

I know transparent is an acceptable value for color, but under what
circumstances? Where is it described on w3c.org?
Jul 20 '05 #1
6 1857
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
"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
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
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
"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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: R.Marquez | last post by:
I am trying to create a simple script that Opens an existing PNG and resaves it with a transparent color. With the command line version of ImageMagic this is an easy endevor (and my current...
1
by: Efkas | last post by:
My application have some level : 1. MyButton class with Label inheritance 2. MyComponent as User Control loading and positionning some of MyButtons 3. MyApp loading and positionning MyComponent ...
3
by: Steve Koon | last post by:
Any thoughts on getting this project to work or suggesting another method would be appreciated. Steve ========================================== Project: A Windows Form which acts as a...
7
by: Peter Oliphant | last post by:
Using MakeTransparent one can supposedly turn a color used in a Bitmap to transparent. But, it looks to me like all it does it set these pixels to the color BackColor of the Control it's attached...
5
by: Mark Deibert | last post by:
I'm a former VB6 coder. Quit a few years ago. Now I'm back and trying to teach myself VB.NET. I don't remember having this much difficulty learning VB6. I'm totally stuck on something and need your...
8
by: Grahammer | last post by:
Is it possible to set the background of a usercontrol as transparent? I tried setting the background image of the usercontrol to a transparent GIF, but that caused MAJOR problems. I'm making...
4
by: jcrouse | last post by:
I am using the following code to move a label on a form at runtime: If myMousedown = lblP1JoyRight.Name Then If lblP1JoyRight.BackColor.Equals(Color.Transparent) Then bTransCk = True ...
2
by: Pascal | last post by:
Je veux que mes label soit transparent aussi sur mes picturebox alors j'écris : i want my labels to be transparent on my pictureboxes so i wrote : Private Sub Form1_Load(ByVal sender As Object,...
4
by: ray well | last post by:
in my app i need to make a RichTextbox control transparent. i need it to be a like a pane of glass lying on a sheet of paper, where u can see everything on the sheet of paper not covered by text...
4
by: Dale | last post by:
I am creating GIF images with transparent backgrounds on-the-fly for a web app and rendering them by using System.Drawing.Image.Save(Response.OutputStream, ImageType.GIF). I am confident that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.