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

opacity - want to NOT inherit setting - works in IE, not netscape


All,

The following is an example of what I'm trying to do: I have a box set to be
partially transparent. I want the text in the box to NOT be partially
transparent. This works in IE, but NN7 has the text still at 75% opacity.
Can anyone tell me what I'm doing wrong?

TIA.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title> New Document </title>
<style type="text/css">
.solidtext
{
color: red;
filter:progid:DXImageTransform.Microsoft.BasicImag e(opacity=1.0);
-moz-opacity:1.0;
filter:alpha(opacity=1);
opacity: 1;
}
..transparentbox
{
border: dashed #C0C0C0 2px;
padding: 5px;
background-color: #FEFEE0;
margin-top: 150px;
margin-left: 300px;
margin-right: 30px;
margin-bottom: 20px;
filter:progid:DXImageTransform.Microsoft.BasicImag e(opacity=0.75);
filter:alpha(opacity=75);
-moz-opacity:0.75;
opacity: 0.75;
}
..compareBox
{
border: dashed #C0C0C0 2px;
padding: 5px;
background-color: #FEFEE0;
margin-top: 150px;
margin-left: 300px;
margin-right: 30px;
margin-bottom: 20px;
}

</style>
</head>

<body>
<div class="transparentbox"><span class="solidtext">blah!</span></div>
<div class="compareBox"><span class="solidtext">blah!</span></div>
</body>
</html>

--
--
~kaeli~
Why do they lock gas station bathrooms? Are they afraid
someone will clean them?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #1
0 3897

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

Similar topics

1
by: Dean Edwards | last post by:
I am attempting to change the opacity of an image. I can modify opacity ok: function flip(pic, opacity){ pic.style.filter = 'alpha(opacity='+opacity+')'; } But I'm not familiar with...
14
by: DU | last post by:
According to a recent post, it seems that Konqueror 3.1+ and Safari 1.1 support CSS3 opacity style property under a proprietary name: "Support for the CSS3 opacity (using -khtml-opacity)...
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...
4
by: beaker | last post by:
Hello, Is there a way to alter the opacity of an MDI child window? I've tried setting the Opacity property, but it has no effect on the children (fine for the parent though). (I want to...
0
by: Mark Denardo | last post by:
Can someone tell me why setting the opacity of a control in 2005 no longer works like it did in 2003 (using Color.FromArgb)? In 2003, I could make the opacity of the text of a Label 50% by the...
16
by: Darko | last post by:
Hi, I'm trying to get and set an element's opacity, but I'm stuck with, what a hell of surprise, Internet Explorer. As for getting the element's opacity, I have the following (not working) lines...
3
Frinavale
by: Frinavale | last post by:
So, the opacity style is rather annoying because every browser seems to handle it differently. I guess it's because opacity wasn't included in the w3c standards to begin with...mind you if it had...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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:
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: 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.