W3C home > Mailing lists > Public > www-style@w3.org > April 2007

Re: Question about default colors

From: Yahia Chlyeh <cyahia@gmail.com>
Date: Tue, 24 Apr 2007 12:51:26 -0000
To: "David Woolley" <forums@david-woolley.me.uk>
Cc: 3w-style <www-style@w3.org>
Message-ID: <op.tragn0edbhoi91@poste0>

On Tue, 24 Apr 2007 06:36:06 -0000, David Woolley  
<forums@david-woolley.me.uk> wrote:

>
> Yahia wrote:
>
>> PS: MSIE's PNG transparency support has been fixed in version 7.
>
> The typical marketing requirement is to support one back version of IE,  
> so that means that GIF still has to be used.  For this application, you  
> need a full alpha channel, not the single transparency index of GIF.
>

I'm aware of that. If the website owner requires support for previous IE  
versions (v6 which is unlikely to disappear anytime soon), then the author  
may use the simple and clean css hack to provide the same png image  
without transparency, matching the webpage's background:
element { background:url(logo.png); } /*this applies to all browsers,  
including MSIE7*/
* html element { background-image:url(nonalpha-logo.png); } /*this is  
recognised only by MSIE versions _less than_ 7 -- IOW that do not support  
png's alpha channels.*/

-- 
Yahia Chlyeh
<http://yahia.ma/antiblog/>
Received on Tuesday, 24 April 2007 13:00:12 GMT

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