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

opacity not being inherited

I am attempted to make a semi-transparent div in IE/Firefox but IE is
only making the first image in the div opaque

for example if I have a div like:

<div class='trans'><img src="foo.jpg"><img
src="bar.jpg"><span>text</span></div>

only foo.jpg become opaque. any ideas why? It works as expected in
firefox

the css being applied is:

..trans{
width: 100%; opacity:.50;filter: alpha(opacity=50);
}

May 3 '06 #1
1 1756
To further the education of mankind, "dave" <da********@gmail.com>
vouchsafed:
I am attempted to make a semi-transparent div in IE/Firefox but IE is
only making the first image in the div opaque

for example if I have a div like:

<div class='trans'><img src="foo.jpg"><img
src="bar.jpg"><span>text</span></div>

only foo.jpg become opaque. any ideas why? It works as expected in
firefox

the css being applied is:

.trans{
width: 100%; opacity:.50;filter: alpha(opacity=50);
}


It's probably the MS filter. Try putting an opacity-specific class on the
images.

--
Neredbojias
Infinity has its limits.
May 3 '06 #2

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

Similar topics

0
by: Justin Archie | last post by:
I have been working on a CSS page for a few days now. I have been working on a layout, which can be seen at http://jtarchie.spacecows.net/greenwood . The CSS is in the HTML document. My problem is...
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...
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...
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
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: 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:
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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.