In his CSS Mastery book, Andy Budd explains how to create "liquid" images with a percentage width and a max-width. Something like this:

img.liquid {
        width: 25%;
        max-width: 300px;
        float: left;
        padding: 2%;
}

This way you can set the img width to be a certain percentage of its containing block and also stop the image from getting too large (at least, in modern browsers). Images generally look fine when they're set in CSS to be smaller than the actual size.

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Feb 15, 2008, at 10:01 AM, [EMAIL PROTECTED] wrote:


I like the idea of proportional images. My friend uses IE7, which does
attempt to 'inflate' the whole screen. It makes the images look a bit
rubbish, but it's better than missing them altogether!

Thanks for passing this on, I'll experiment with em-sized images.
It'll make setting the gap widths easier, at any rate!

Cherry.

On Feb 15, 3:30 am, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
Rick, I have not gotten into it too much because it has not been a
requirement, having just the alt/title tags is usually enough, but there has been talk over at the EPA accessiblity testing group to require setting width and height of images using EM instead of PX. This is so that if a user bumps up the text size (ctrl +) that the image will get bigger at the
same ratio.  Of course the text would need to be in EM also. This is
something that I personally have not gotten into yet, but it may become a
requirement for one of my contracts.

On 2/14/08, Rick Faircloth <[EMAIL PROTECTED]> wrote:





What does your friend do about images? Enlarging the text would be a
start,
but if I were having great difficulty viewing the screen, I would want a
solution that allows me to view images, as well.

Rick

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery- [EMAIL PROTECTED] On
Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, February 14, 2008 1:51 PM
To: jQuery (English)
Subject: [jQuery] Re: a small accessibility rant

Wow, I really appreciate both of your quick replies!

Benjamin, I have seen yours & Richard's contributions - knowing I'm
not all alone is what's keeping me motivated ;)

From the accessibility plugin's demo page, it serves an accessibility
reminder. Which is a start :)

@JMoore - my point is this: My friend's computer is *her* computer.
How can it be right to say she shouldn't choose to make use of its
built-in capabilities to read what's on the screen??
You may as well say that using a magnifier to read the newspaper is a
hack .....

On Feb 14, 6:23 pm, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
Cherry,
There are quite a few of us that would agree with you, Richard Worth
and
myself to name two, there is plugin but could not find it right away
that
help with accessibility. Everything I do has to be 508 compliant and
not
just because I feel it is the right thing to do, but I would with the
Gov't,
ie. epa, army.mil, and so on. So I understand your point of view and
the
best suggestion is to keep doing what you are doing and always keep
accessibility on the front burner.
--
Benjamin

Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp://www.benjam ...

--
Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp ://www.benjaminsterling.com

Reply via email to