473,379 Members | 1,253 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.

Problem with Opacity in IE

Hi,

I tried an exaple for opacity like this,

*********************************[html]
<html>
<title></title>
<head>
<style>
.opac
{
height:100px;
width:100px;
border:1px solid red;
position:absolute;
left:100px;
top:100px;

filter:alpha(opacity=30);
-moz-opacity:.30;
opacity:.30;
}
#header
{
border:1px solid blue;
height:20px;
width:40px;
position:relative;
top:-10px;
left:5px;
background-color:#999999;
}
</style>
</head>

<body>
<div class="opac">
<div id="header" style="">Header</div>
</div>
</body>
</html>[/html]
************************

I am want to display the sub division like an header to the main div, but after applying the opacity for main div, the part which is out side the main div in sub div is disappearing. I am getting this problem in IE only. It is working fine in FireFox.

Could any one knows any solution regarding this, most welcome.
It will help me alot.
Thank you in advance.

Regards,
Jagadeesh.
Dec 14 '07 #1
1 1488
drhowarddrfine
7,435 Expert 4TB
Apparently IE is having problems with its own 'filter'. I don't know what the problem is right now.

btw, there is no need to you -moz-opacity. Modern browsers work fine with the CSS property 'opacity'. Of course, IE doesn't.

EDIT: Perhaps this is due to IEs collapsing margins bug. I'll look into this later.
Dec 14 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Joseph Misko | last post by:
I am on WinXP. The following page works perfectly in IE6. For Netscape 7.0, I have to move off of the image and then back on to get the fade to take effect, and with Mozilla (latest version) a...
2
by: manu3d | last post by:
Hi everybody! I'm trying to put the icing on a cake but I'm having one final problem. The cake is actually a fadeIn function that takes in input an element id(in my case a <DIV> block) and a...
10
by: dvdriper | last post by:
hi, I have a problem, so please, who knows something I'd be very happy if he helps me so, I wanted to specify an opacity for the site logo's DIV, i did, this: Code -start- div.logo { ... ...
4
by: STIAdmin | last post by:
Happy Holidays to all of you! This is my first time posting. I'm working on a web project and trying to get this done before Christmas. The limitation is that I'm using an out of the box program...
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...
16
by: Mathieu Maes | last post by:
I have developed a page with javascript which has a filmstrip look- alike bar and a slideshow: http://celtecbe.apache02.hostbasket.com/pdw/media.php?id=268 It uses a "onmousemove" event, which...
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: 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:
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?
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.