CSS transparency
CSS transparency
- Started
- Last post
- 4 Responses
- lynseyb
Hi everyone!
does anyone know the css code for setting the background of a div to transparent but keeping the text within the div opaque?
My text is transparent too no matter what i do! thanks!!
- Amicus0
set the transparency of the text separately???
- 7point340
background-color: transparent;
- lynseyb0
I have done that but it not working. I have the text in a div within the main div. the main div is set to 0.5 opacity and the text is set to 1 like this:
filter:alpha(opacity=50);
opacity: 0.5;
-moz-opacity:0.5;filter:alpha(opacity=100);
opacity: 1;
-moz-opacity:1;Not working tho..
- opacity effects the contents of the object, background-transpare... is only the background7point34
- neevrmind you want, 50 % transparency.... use a png or javascript or something7point34
- +1 for PNG method..poolio
- +2 for the PNG method. You'll need to include separate CSS for IE6, though.********
- Or a PNG-transparency fix for IE6. Can be done with some js, I believe.********
- jamiemcconnell0
I wrote this tutorial a while back - still works i believe :)