On Sun, 2009-04-12 at 21:37 +0200, Els wrote: > 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 > > taking els advice, you can do a little better, use an image editing program, use the rgba values you want, and then save it as a png. Older browsers (IE) have bad support for png's but then you can find a png fix file on the internet and use that in conjunction with the bg image.
______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] 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/