Click to See Complete Forum and Search --> : err another opacity question


subhailc
02-24-2004, 06:12 AM
trying to have fully opaque (i.e., 100%) text on partially opaque (approx 30) colored background - this is happening in a div, in a div (can't change that part) - tried the whole span / a tag position: relative thing (and yes i remembered to assign width) but didn't take - and it has taken before - something about the div's it's within having the opacity affected is throwing it i suppose. here's some code... thx again


<div id="menu1Container"><div id="menu1Content" class="menu"><span style="position: relative; width:100%"><a href="#" class="squishy">menu item</a></span></div></div>
<div id="menu2Container"><div id="menu2Content" class="menu"><a href="#" class="squishy">menu item</a></div></div>
<div id="menu3Container"><div id="menu3Content" class="menu"><a href="#" class="squishy">menu item</a></div></div>
<div id="menu4Container"><div id="menu4Content" class="menu"><a href="#" class="squishy">menu item</a></div></div>

edit: the first line is different than the others only because i tried putting the relative positioning in the HTML as well as the CSS - i tried it in every combination - adding spans, divs, tables, in CSS only, in HTML only, both, etc.
: end edit
and the css:


.squishy{
font-family:Verdana,Tahoma,sans-serif;
font-size:11px;
font-weight:bold;
color:#FFFFFF;
position:relative;
padding-bottom:1px;
padding-left:8px;
height:18px;
width:150px;
border:0px;
text-decoration:none;
}

.menu {
background-color: #660000;
width:150px;
height:20px;
visibility:visible;
filter:Alpha(opacity=20)
}