473,386 Members | 1,721 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,386 software developers and data experts.

Opacity?

Can someone point me to a good explanation of how to use opacity?
From CSS 3 http://www.w3.org/TR/2003/CR-css3-co...30514/#opacity
which I read to mean just set a decimal value between 0 and 1

I tried using opacity: 0.50; and it appeared to work as expected in
Safari and Firefox, but not in Opera. Does it actually work in any
version of IE? Does it degrade harmlessly like in Opera?

I also noticed the use of filter: alpha(opacity=50); apparently for
Internet Explorer only, and added that in an attempt to provide
something for IE to use also.

However the CSS validator says property opacity doesn't exist about the
first version, and says parse error opacity=50 about the second. I
guess that is a reasonable error message about the second if it is an IE
only variation. But I don't understand what CSS syntax I should use
instead of opacity: 0.50; if I have that wrong.

I tried both of these in http://www.sheltersrus.com.au/horse.html with
http://www.ericlindsay.com/sheltersrus.css controlling the opacity of
the text of the pseudo logo that should be in the top left hand corner
of the page (I am just using that photo for test purposes). As I said,
works in Firefox and Safari. If the "logo" falls down the page in IE
that would be nice to know also (I have dark suspicions of things
breaking).

--
http://www.ericlindsay.com
Nov 30 '05 #1
2 2348
Eric Lindsay wrote :
Can someone point me to a good explanation of how to use opacity?
From CSS 3 http://www.w3.org/TR/2003/CR-css3-co...30514/#opacity
which I read to mean just set a decimal value between 0 and 1

I tried using opacity: 0.50; and it appeared to work as expected in
Safari and Firefox, but not in Opera.
The latest releases (stable and dev.) of Opera (Opera 8.51 and Opera 9
beta 1) do not support opacity but I'm sure Opera dev. would love to
support CSS3 opacity.

Does it actually work in any version of IE?
Under a proprietary and non-standard feature, yes.
filter: alpha(opacity=xx)
where xx is an integer between 0 and 99.

Does it degrade harmlessly like in Opera?


Yes.

Gérard
--
remove blah to email me
Nov 30 '05 #2
Eric Lindsay wrote:
However the CSS validator says property opacity doesn't exist about the
first version, and says parse error opacity=50 about the second. I
guess that is a reasonable error message about the second if it is an IE
only variation. But I don't understand what CSS syntax I should use
instead of opacity: 0.50; if I have that wrong.


If you choose CSS3 profile in the validator, you only get one error
(about the filter stuff).
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Nov 30 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Marek Mänd | last post by:
This posting will express my concern about the future of css3 forthcoming recommendation. I think for long time now, that the current implementation of CSS attribute opacity is less than usable...
1
by: mhoeneveld | last post by:
I am writing a small script to fade the opacity of an image/object. The script itself works fine only I do have some unwanted behaviour. I do use a tablecell object and the mouseover/mouseout to...
15
by: Sunny | last post by:
Hi, I can change the lement opacity in IE using. abc.style.filter = 'alpha(opacity=' + 10 + ')'; But this dont work in firefox, In firefox it throws error. How I can change the opacity of an...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.