Janie,

On 8/7/05, Janie Hadsel <[EMAIL PROTECTED]> wrote:
> On 6Aug2005, Roger wrote: 
> "You can size an img element using em or % just like any other element." 
>   
> Hi Roger and J, 
>   
> I did some testing and put together the following sample page using em:
> http://www.hadsel-design.com/CSSimg_proportion.htm or the
> shortened url: http://url123.com/sps67 . I'd like to point out that there
> are some image quality issues with allowing the browser to resize images
> according to the user's text-size settings and ask how one would go about
> detecting the user text size (if that's even possible) so that pre-optimized
> images could be used according to size ranges. 

Hi, and welcome to the list.  The quality issues you've observed are
the downside of this technique, although the quality on your test page
was better than I expected when I looked at it in firefox.  You could
use javascript to measure the resulting image size in px and change
both the source and size ot match a pre-set list that you've optimized
ahead of time.  But it is outside the bounds of this list.  Preparing
multiple images is so much work I've never pursued this idea.

-- 
Roger

Roger Roelofs
Know what you value.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to