On 19 Nov 2003 16:42:33 GMT, "Philipp Lenssen" <info@outer-court.com>
wrote:
[color=blue]
>Peter Foti wrote:
>[color=green]
>> I have seen lots of examples where some HTML text is replaced with a
>> background image using CSS. For example, replacing the text of an
>> <h1> with a graphical logo, like so:
>>
>> CSS:
>> h1 span { display: none; }
>> h1 { height: 100px; background: url("mycompany.gif") no-repeat 35px
>> 40px; }
>>
>> HTML:
>> <h1><span>My Company</span></h1>
>>
>> This allows the text version to be displayed for non-CSS browsers, and
>> allows a more visually appealing logo to be displayed for CSS enabled
>> browsers (assuming they don't have images turned off).[/color]
>
>Why not simply use the logo-image inside the h1 with alt-text "My
>Company"? Works with or without CSS, with or without images.[/color]
Agreed. Background images should be used for decoration only. Anything
containing information should be in the foreground.
--
Stephen Poley
http://www.xs4all.nl/~sbpoley/webmatters/