this might work:
#wrapper {
background: #ffffff;
opacity: 0.8;
filter:alpha(opacity=80);
-moz-opacity:0.8;
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
-khtml-opacity: 0.8;
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=80)”;
}
#wrapper *
{
opacity: 1;
filter:alpha(opacity=100);
-moz-opacity:100;
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
-khtml-opacity: 0.8;
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=100)”;
}
the * means everything
MattyRobot
Junior Poster in Training
73 posts since Aug 2009
Reputation Points: 33
Solved Threads: 8
no it works for css i tried it and it did work
the #wrapper * means everything inside wrapper
so wrapper opacity 80%
everything inside 100%
MattyRobot
Junior Poster in Training
73 posts since Aug 2009
Reputation Points: 33
Solved Threads: 8
bubbafunk
Yes * means everything BUT Context is King
elementA {space} * means everything that is a child of elementA
just as the robot has written
why it didnt work, for YOU, will have to wait till a guru comes along, I dunno
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
could I see the html as well as there doesn't appear to be anything wrong with the css
MattyRobot
Junior Poster in Training
73 posts since Aug 2009
Reputation Points: 33
Solved Threads: 8
no offence but the code is a little messy.
there were a few mistakes where some elements were not closed and there was not starting tag
I have indented the code and fixed the issues and it renders correctly in firefox (i checked the opacity with firebug :P)
<html>
<head>
<style type="text/css">
#wrapper {
width: 860px;
margin-left: auto;
margin-right: auto;
padding-right: 5px;
padding-left: 5px;
background: #ffffff;
opacity: 0.8;
filter:alpha(opacity=80);
-moz-opacity:0.8;
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
-khtml-opacity: 0.8;
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=80)”;
}
#wrapper * {
opacity: 1.0;
filter:alpha(opacity=100);
-moz-opacity:1.0;
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
-khtml-opacity: 1.0;
-ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=100)”;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="left">
<img src="images/logo.jpg" width="163" height="132" class="des_logo" />
<ul class="side_nav">
<li class="main_nav">
<a href="#">Company Profile<br/>
<span class="main_nav_2">A bit about our company</span></a>
</li>
</ul>
</div>
<div id="right">
<div id="top">
<div class="top_nav">
<ul>
<li><a href="#"> Home</a></li>
<li><a href="#"> Contact</a></li>
</ul>
</div>
<div class="top_tels">Bristol: <span class="tels">000000000</span> | Bath: <span class="tels">00000000</span> | Mendip: <span class="tels">00000000</span></div>
</div>
<div id="flash">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="645" height="250">
<param name="movie" value="header_v2_3.swf" />
<param name="quality" value="high" />
<embed src="header_v2_3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="645" height="250"></embed>
</object>
</div>
<div id="page_headers">Home</div>
<div id="content">
<p>here is some content text</p>
</div>
</div>
<div id="footer">
<div class="address">
<p> address</p>
<div class="footer_tels">
<p> Tel: 000000</p>
</div>
</div>
</div>
</div>
</body>
</html>
MattyRobot
Junior Poster in Training
73 posts since Aug 2009
Reputation Points: 33
Solved Threads: 8
or the generic #wrapper * applies to anything inside wrapper rather than specificly setting the opacity for every child element.
MattyRobot
Junior Poster in Training
73 posts since Aug 2009
Reputation Points: 33
Solved Threads: 8