Click to See Complete Forum and Search --> : transparency question
mishkin
11-29-2006, 01:26 PM
Ok, so I need a little help with table transparency. What I want to do is have a black background color for my body, and have the table colors half transparent so they appear shaded with the black underneath. How can this be accomplished?
Thanks in advance.
TheBearMay
11-29-2006, 01:52 PM
<style type="text/css">
body, html {
background-color:#000000;
}
table, tr, td {
filter:alpha(opacity=50);
opacity:.50;
background-color:#00c300;
}
</style>
mishkin
11-29-2006, 02:19 PM
thank you thank you ^_^
mishkin
11-29-2006, 03:23 PM
ahhh actually i'm running into a problem with this. the transparency works fine but all of the textnodes in my td elements are not visible. I don't think this is an issue with font color because I can't even highlight where the text is. What am I doing wrong?
Kravvitz
11-29-2006, 10:39 PM
Opacity affects the descendants of an element -- including text nodes.
Why don't you just figure out what the color would be when you make it partially transparent on a black background and then set that as the background color of the table?