Previous Message
Next Message

div background opacity

Sent by david on 25 March 2008 19:07


Daniel Hammond wrote:
> | Is there a way to reduce the opacity of the background color 
> | of a div to a percentage less than 100%,
> | but not completely transparent? 
> | 50% for example.
> | Daniel Hammond
> 
> | yes there is a way:
> | check this out:
> | http://www.w3schools.com/css/css_image_transparency.asp
> | Nina..
> 
> Thanks, that's almost exactly what I need. The only problem is that it also
> makes the text transparent. I want the text to remain at 100% opacity.

Transparent applies to everything in the element. You have to put the 
text in an element that is completely outside of the transparent one, 
then position it over the transparent element.

-- 
David
[EMAIL-REMOVED]
authenticity, honesty, community
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread:

Possibly related: