Philippe Wittenbergh wrote:
> On Aug 5, 2008, at 2:15 AM, Karl Bedingfield wrote:
>> Is there a way to keep my h2 text full opacity while the background
>> colour is at 50% opacity?
> NO.
> This has been asked on the list a few times recently.
> See e.g.
> <http://css-discuss.markmail.org/search/?q=Philippe%20Wittenbergh#query:Philippe%20Wittenbergh+page:1+mid:p5xw4umimglhgeuz+state:results
>  
>  >

This isn't /entirely/ true, as is alluded to in the link that Philippe
has included in his reply.

A strange combination of RGBA, IE's gradient filter and data:uri (or a
png) will allow you to achieve a cross-browser,
semi-to-fully-transparent background without causing the text inside the
element to inherit the transparency.

I've recently worked on a project very similar to one developed by
Hedger Wang. You can see my work here:
http://theholiergrail.com/sandbox/rgba-cross-browser.php
and Hedger Wang's project here:
http://www.hedgerwow.com/360/dhtml/rgba/demo.php

I was unaware of Hedger's project during the time I was implementing a
solution for a client who wanted exactly what you're asking for. If I'd
known about his, I might have used it instead of working on one of my
own, except that a cursory glance seems to indicate that his is slightly
more complex. I haven't really had a chance to delve much more into his
work on that page.

In any event, I hope it helps. Let me know if you have any questions.
--Bill



-- 
/**
 * Bill Brown
 * TheHolierGrail.com & MacNimble.com
 * From dot concept...to dot com...since 1999.
 ***********************************************/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to