W3C home > Mailing lists > Public > www-style@w3.org > February 2005

Re: selecting text?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 23 Feb 2005 14:46:21 +0100
To: www-style@w3.org
Message-ID: <42658828.272344875@smtp.bjoern.hoehrmann.de>

* Anne van Kesteren wrote:
>>> Is there a way to select the text inside a tag rather than the tag
>>> with the text inside of it? I ask because I have a page which I'm
>>> applying opacity to the buttons that are rendered by the anchor
>>> tags. This works fine and looks nice in Mozilla. I'd like to select
>>> the text so that I can keep it's opacity at 1 so that it is not
>>> also translucent. Is this possible? I'd like to keep from making
>>> any changes to the existing HTML if possible. Thanks.
>> 
>> Could you have a look at http://www.w3.org/TR/css3-color/#rgba-color
>> and tell whether this could be used to achieve the desired
>> presentation?
>
>Since 'opacity' applies to the whole block, I think not. I might be 
>missing something though.

The link goes to the rgba(...) functional notation. My understanding is
that he should not use the opacity property but rather the rgba notation
in a way that does not change the opacity of the text color which is in-
deed possible.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 23 February 2005 13:46:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:36 GMT