W3C home > Mailing lists > Public > www-style@w3.org > May 2011

Re: transparency

From: Paul Kinlan <paulkinlan@google.com>
Date: Wed, 18 May 2011 11:01:08 +0100
Message-ID: <BANLkTikuuZDbETyQyhCk6CHqV9x_a51M0Q@mail.gmail.com>
To: Ricardo Ferreira <ricardo.ferreira@9tree.net>
Cc: www-style@w3.org
Hi,

In theory you can use background-color: rbga(255,255,255, 0.5) and it will
only make the background of that element transparent, thus keeping the
nested elements fully opaque.

P

On Tue, May 17, 2011 at 10:55 PM, Ricardo Ferreira <
ricardo.ferreira@9tree.net> wrote:

> Hi,
>
> I don't know if anyone have the same "problem", but I think that the
> transparency should have some parameter where I could specify that text and
> inputs (some elements pre-defined) don't have transparency on it.
> For example:
>
> <div style="transparency: 0.5">
>   <span>Hi, my name is FOO, what's yours?</span>
>   <input type="text" name="bar" />
> </div>
>
> As you can see, the text and the input inside the div will be transparent
> too. The only way to get this work is defining the div (in this example),
> outside the div define the span and input and positioning the elements with
> absolute value..
> Example:
>
> <div style="transparency: 0.5;"></div>
> <div style="position: absolute; top: 0;">
>   <span>Hi, my name is FOO, what's yours?</span>
>   <input type="text" name="bar" />
> </div>
>
> What's your opinion? Is there a way that I don't remembering?
>
> Thanks in advance.
>
> Best Regards,
> Ricardo Ferreira
>
>


-- 
Paul Kinlan
Developer Advocate @ Google for Chrome and HTML5
t: +447730517944
tw: @Paul_Kinlan
LinkedIn: http://uk.linkedin.com/in/paulkinlan
Blog: http://paul.kinlan.me
Skype: paul.kinlan
Received on Wednesday, 18 May 2011 10:01:33 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:40 GMT