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


From: Ricardo Ferreira <ricardo.ferreira@9tree.net>
Date: Tue, 17 May 2011 22:55:22 +0100
To: www-style@w3.org
Message-ID: <9D7E0C9EBB4A416F8FF644586E5DD3C7@9tree.net>

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" />

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

<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" />


What's your opinion? Is there a way that I don't remembering?

Thanks in advance.

Best Regards,
Ricardo Ferreira
Received on Wednesday, 18 May 2011 08:47:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:46 UTC