WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: IE Weirdness

for

From: Jared Smith
Date: Jun 21, 2006 8:40PM


Amanda Penrose wrote:
> If you open this page in IE (I'm using 6 on a PC) and resize the window
> (if you need to) so that the image is too wide for the content area,
> you'll see what I mean.

To add to what the others have said, this is just the way things work. It
could be solved by adding a CSS min-width, but Internet Explorer does not
support it (IE7 will, however). Besides putting it in as a background
image (not a great solution if you want alt text), you might also play
around with setting overflow:auto on the paragraph that contains the
image. I'm not certain it will work, but it SHOULD cause a scroll bar to
appear around just the image if it cannot fit within the size contraints
of that container. It's not pretty to have the scrollbars, but it might be
better than having the content jump around.

Jared Smith
WebAIM.org