liltyga
asked on
Alpha Transparency
Hi,
I'm using the following code to creat a transparency for certain cells of a table:
<table background="img/home_bg.jp g" width="500" height="500">
<tr>
<td height="250" bgcolor="#ffffff" style="filter: alpha(opacity=50); -moz-opacity: 0.50;"><div align="center">alpha transparency applied</div></td>
</tr>
<tr> <td height="250"><div align="center">no alpha transparency applied </div></td></tr>
</table>
The problem is that the text is also afflicted with the transparency. How can I make the background use the transparency, but not the text?
I'm using the following code to creat a transparency for certain cells of a table:
<table background="img/home_bg.jp
<tr>
<td height="250" bgcolor="#ffffff" style="filter: alpha(opacity=50); -moz-opacity: 0.50;"><div align="center">alpha transparency applied</div></td>
</tr>
<tr> <td height="250"><div align="center">no alpha transparency applied </div></td></tr>
</table>
The problem is that the text is also afflicted with the transparency. How can I make the background use the transparency, but not the text?
ASKER
Thanks lombardp,
Unfortunately I tried this already with no success :(
Unfortunately I tried this already with no success :(
you are applying the transparency to the whole table cell...you just want the background color of the table cell to use the filter?
I just posted this a couple of days ago - it may be what you need:
http://www.pdgmedia.com/ee/trans.html
http://www.pdgmedia.com/ee/trans.html
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Man you're getting close there Cd&...
7 digits - just about right for your average Dino :-)
7 digits - just about right for your average Dino :-)
ASKER
Thanks so much for all your help!!
Glad we could help. Thanks for the A. :^)
Sean,
You always use three so I'm trying to get the average up. ;^)
Cd&
Sean,
You always use three so I'm trying to get the average up. ;^)
Cd&
Actually I was referring to your point total ;-)
Oh yeah that... The result of many misspent hours... days... weeks. It's gotten too easy.
I thought I left on of my trademark typos in a color value.
A million is nice but getting cert number 6 (web languages) is bigger. There are fewer experts with 6 then there are million pointers.
Cd&
I thought I left on of my trademark typos in a color value.
A million is nice but getting cert number 6 (web languages) is bigger. There are fewer experts with 6 then there are million pointers.
Cd&
Cd& - Questions Answered 2700
nice job man.
nice job man.
I wonder if any of them is without a typo. ;^)
Cd&
Cd&
There is a slightly easier way ...
I have a cell (which is a TH) ...
<style>
.MaintTHError
{
border-style : none;
border-color : #FF0000;
background-color : #FF0000;
filter : alpha(opacity='15');
}
.MaintSPANErrorLabel
{
position: relative;
left: 0px;
top: 0px;
text-align: center;
}
</style>
<th class="MaintTHError"><span class="MaintSPANErrorLabel ">Password </span></t h>
That's it!
I use this to give the cell (which is a header for a row) a transaparent red background when there is an error in that row. The page background stills shows through and you do not need to worry about sizing anything. I've only tried it with a single line of text.
Hope this is of use to you all!
Regards,
Richard Quadling.
I have a cell (which is a TH) ...
<style>
.MaintTHError
{
border-style : none;
border-color : #FF0000;
background-color : #FF0000;
filter : alpha(opacity='15');
}
.MaintSPANErrorLabel
{
position: relative;
left: 0px;
top: 0px;
text-align: center;
}
</style>
<th class="MaintTHError"><span
That's it!
I use this to give the cell (which is a header for a row) a transaparent red background when there is an error in that row. The page background stills shows through and you do not need to worry about sizing anything. I've only tried it with a single line of text.
Hope this is of use to you all!
Regards,
Richard Quadling.
I think the reason this works is that positioned elements lose the filter. I think. Not sure. Also, not tested on anything other than IE6. Sorry.
<table background="img/home_bg.jp
<tr>
<td height="250" bgcolor="#ffffff" style="filter: alpha(opacity=50); -moz-opacity: 0.50;">
<div align="center" style="filter: alpha(opacity=100); -moz-opacity: 1.00;">alpha transparency applied</div>
</td>
</tr>
<tr> <td height="250"><div align="center">no alpha transparency applied </div></td></tr>
</table>