Chike Loney wrote:

> How do I set the opacity of a <div> to let's say 50%

opacity:0.5;

http://www.w3.org/TR/css3-color/#opacity

Not sure which browsers support it, and also has the disadvantage that 
the text in the div will also become transparent.

If the background of the div is a solid colour (rather than an image), 
you might want to try using rgba() values for the background colour 
instead.
Again, not sure which browsers exactly support it. But using rgba(), 
the text in the div will keep its colour instead of becoming 
transparent with the div's background.

http://www.w3.org/TR/css3-color/#rgba-color


-- 
Els

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to