Re: Display: none

On Tue, Mar 14, 2006 at 10:50:50AM -0800, Paul Novitski wrote:
> h1
> {
>         overflow: hidden;
>         width: 150px;
>         height: 0px;
>         padding-top: 20px;
>         background: url("../images/this_is_my_title.gif") left top 
>         no-repeat;
> }
> I like this a lot because it doesn't require any extraneous 
> markup.  I'm not aware of any disadvantages to this technique and 
> would appreciate hearing about any.

Style sheets on but images off (or even just background images off, as
is the default for printing on most browsers) and the user gets
nothing.

Also, if the user increases their font size, the image won't resize,
possibly leaving it in the state "Still too small to read".

-- 
David Dorward                                      http://dorward.me.uk

Received on Tuesday, 14 March 2006 18:58:56 UTC