469,917 Members | 1,725 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

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 3800

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Dean Edwards | last post: by
reply views Thread by Justin Archie | last post: by
16 posts views Thread by Darko | last post: by
Frinavale
3 posts views Thread by Frinavale | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.