Micky Hulse wrote:

> The number used was 16. Is that related to default font size for a 
> particular browser? I thought that number changed depending on 
> browser... I would love to setup a site that displayed images at the 
> optimal/default dimensions/resolution, but scaled on zoom.
> 
> Seems like using 16 may work for some browsers, but not for others.

It is more or less an arbitrary number, derived from the "norm" that
says that medium font-size is 16px by default in yesterday's, and most
of today's, browsers.

The important thing is that you divide them (by a number of your
choosing) from pixels to EMs _exactly_ to the last decimal (and hope the
browsers know their math).

The result will/should be the same in all browsers - providing the
font-size is the same. That's an unknown that includes
system-defaults/norms/resolutions, browsers and user-applied
font-resizing. A pretty wide range.

> I am pretty picky when it comes to crisp jpgs.

Then you either have to avoid em-resizing of images, or make them
considerably larger then you want them to appear, and size them down in
browsers. You can however never be sure about the crispness a visitor
gets when you style images for resizing.

> Maybe I am not fully understanding the relationship here... I know it
>  can't be that easy! :D

Sure it is! It is achieving a good, crisp, result that is hard, since no
browser can resize images as well as a dedicated photo-program can.

> For example, if precision is required for a layout (i.e. 
> newspaper-style layout with a lot of unknown content changing on 
> daily basis), should I even think about using EM's for layout?
> 
> Some of the folks who posted comments in below article/post seem to 
> think that it is not a good idea to use EM's for layout if dealing 
> with images, unknowns, and precision is needed:
> 
> <http://www.cameronmoll.com/archives/001224.html>

EMs for layout is one thing. EMs for image-sizing is another. EMs for
everything is yet another. You can make it all work just fine if you are
in control of everything, but that's rarely the case.

So... look at _your_ case(s) and test out what works and what doesn't,
and then _you_ can decide.

Myself: I apply EM sizing of images in very rare cases, when I know, and
like, what I get.

Some more info...
<http://css-discuss.incutio.com/?page=UsingEm>

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to