CSS Transparency question

lozina

Lifer
Sep 10, 2001
11,711
8
81
So digging around on the net I found a really nice way to get a semi-transparent background using css with the following property:

filter:alpha(opacity=25);-moz-opacity:.25;opacity:.25;

but now my problem is if I write any text on this layer the text too becomes semi-transparent.

Can I use CSS to write solid text on a semi-transparent layer?

example code attached (how can I get "overText" to be solid color):

 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
Unfortunately it's working as intended, ie the whole container (and everything within) has the transparency. Usually the best way around it is overlaying the text on top of the transparent layer.