>On Oct 20, 2011, at 12:36 AM, Elli Vizcaino wrote: > >> If I recall correctly, child elements inherit the opacity property of parent >> elements. Meaning, any text within a div with an opacity declaration would >> then also take on the same values. Has this changed with CSS3? > >As David notes, the descendants of a box with opacity applied don't inherit >that opacity. The property is applied to the (block) box and all its >descendants. If what you want is a box with a semi-transparent background and >/ or borders, then rgba() or hsla() colours are your friend. > >Philippe >-- >Philippe Wittenbergh >http://l-c-n.com/
That seems like a contradictory statement and leaves me still somewhat confused. What I'm getting at is, if a box element gets an opacity property with a value of 0.5 for a semi transparent effect, do child elements such as text then display in the browser at that same semi-transparent value? Elli Vizcaino Creating meaningful connections and compelling experiences through the art & beauty of design. http://www.e7flux.com ______________________________________________________________________ css-discuss [css-d@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/