Re: transparency

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 UTC