Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

A brief introduction to Opacity and RGBA. The CSS opacity property is inherited by an element’s children; opacity set using the new rgba() declaration in CSS 3 differs in that it is not inherited.

Tagged , , ,

1 comment

  1. FWIW, opacity is not inherited. And rgba() inheritance depends on what property it is applied.

    The difference is that opacity applies to the whole (visual) block where rgba()/hsla() are much more limited in scope. They affect just the fore- or background color for instance.

    Anne van Kesteren - 17th March 2008 07:55 - #

Comments are closed.
A django site