Re: Shadows vs. layout

On Mon, Aug 3, 2009 at 10:38 PM, Robert O'Callahan<robert@ocallahan.org> wrote:
> On Tue, Aug 4, 2009 at 3:25 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>>
>> On Aug 3, 2009, at 4:08 PM, David Hyatt wrote:
>>
>> In fact Web sites even deliberately hide elements offscreen using large
>> negative left/top values, so we couldn't scroll to reveal this stuff at this
>> point even if we wanted to. :)
>>
>> I could be wrong, but I thought we used to be able to do that on the right
>> also a few years ago, and then that got "fixed".
>
>
> You've never been able to do it on the right, at least not in Gecko.
>
> Note that doing it on the left stuffs up accessibility. It really shouldn't
> be done at all.

Sometimes we use it *for* accessibility, but that's often a large
negative text-indent instead.  Put text in your links, indent it way
off the left edge of the screen, then add backgrounds to make a good
image link.

These days I just use <img alt>, but I know that's a real common
technique touted for its accessibility benefits.

(It also means that text-indent is pretty much poisoned forever in
terms of the left edge.)

~TJ

Received on Tuesday, 4 August 2009 13:32:59 UTC