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 - #

Sign in with OpenID

Auto-HTML: Line breaks are preserved; URLs will be converted in to links.

Manual XHTML: Enter your own, valid XHTML. Allowed tags are a, p, blockquote, ul, ol, li, dl, dt, dd, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, sub, sup, br, pre

A django site