You are here: Re: iframe or what? « HTML « IT news, forums, messages
Re: iframe or what?

Posted by Michael Fesser on 01/04/08 09:59

..oO(richard)

>On Fri, 04 Jan 2008 07:34:46 +0100, Michael Fesser <netizen@gmx.de>
>wrote:
>
>>Correct. But screens don't work with points or inches, they work with
>>pixels. Now the problem is, that in order to correctly calculate the
>>corresponding length in pixels for a given pt or in value, the operating
>>system has to be configured to a correct dpi/ppi value. But most systems
>>simply run with the default values of 72 or 96 dpi, which means that the
>>results are completely unpredictable and never the same on different
>>platforms with different monitor sizes. A pixel will (almost) always be
>>a pixel, but an inch or point may result in quite different pixel sizes.
>
>Which is why I decided to use inches and pts.
>Comparing positioning in both IE and FF, it is the only way in which
>both show the same locations for the same information.

Nope. That would be px. A 50px margin will always be 50px. But a 2in
margin can be nearly anything on the user's screen.

For example a 2in width as defined in the CSS appears as 4.5cm on my 19"
screen at a 1600 resolution, since I use the default setting of 96ppi.

>Practically everything else is a variable.

In the WWW nearly everything is variable.
But this is feature, not a bug.

>That is, it has no distinct
>properties other than what the screen tells it.
>An inch is a fixed standard. It can only be represented one way.

Nope. You don't know how many pixels an inch defined in your CSS will be
on the user's screen, since it depends on the OS configuration.

Micha

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация