473,796 Members | 2,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=5 0); 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 2361
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=x x)
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
10231
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 in practical real life situations. The soon forthcoming CSS3 recommendation does not serve the public interests in this area not at all. The problem relies in the definition what opacity is, how it is to applied to page elements. In past 5...
1
2638
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 activate the script. In the same cell are some links listed and when you move the cursor over the links the image starts to flicker. This is because of the getElementById that identifies each link as an object. Anyone knows how I can solve...
15
3731
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 element in Firefox.
0
9679
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10453
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10172
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.