Re: Keeping Web Page at Fixed Width
Markus Ernst wrote:[color=blue]
> "kchayka" <kcha-un-yka@sihope.com> schrieb im Newsbeitrag
> news:3f72e448$1 @news.sihope.co m...[color=green]
>> Barry Pearson wrote:[color=darkred]
>> >
>> > The
>> > CSS standard actually treats "px" as relative, not absolute, and
>> > W3C recommend scaling based on the angle subtended at the eye.[/color]
>>
>> FYI, no browser that I know of has implemented px units per the W3C
>> specs, they all use screen pixels instead. Thus, px may be relative
>> units in theory, but in practice they are absolute.[/color]
>
> AFAIK there are 2 different interpretations of px sized CSS:
> - IE treats it as an absolute value and displays 1px = 1 screen pixel
> - Mozilla treats it as relative to text zoom in font sizes, causing
> different sizes when text zoom is on: At text zoom 150% a 12px font is
> displayed in 18px size, a 12px line in 12px size.[/color]
The discussion above isn't to do with such things as showing text at different
sizes depending on user options. Instead it is to do with what a user agent
should do with the "px" unit itself on "untypical" displays. See:
In effect, if the CSS specifies that something is (say) 1px, but the display
device displays significantly different from 90 "things" per inch, the
recommendation is to map it onto a different number of those "things". If, for
example, you have a TFT display with 180 display units per inch (often called
pixels or dots), then the recommendation is for the user agent to map that 1px
thing (a border, say) onto 2 display units (pixels or whatever) on the
display. So that it will occupy the same number of inches that it would on a
90 "things" per inch display. In other words, if you say that "margin-top:
90px", the recommendation is actually to treat this as request to make it
"about 1 inch", and treat this accordingly on other displays. (Well, sort of).
I suspect relatively few people know that! And it appears (I'm not surprised
at all) that it hasn't been implemented.
Just one more thing to confuse a poor photographer wanting to show pictures of
size X x Y on a screen, with text underneath a little bit narrower than X so
that it looks good!
--
Barry Pearson
Markus Ernst wrote:[color=blue]
> "kchayka" <kcha-un-yka@sihope.com> schrieb im Newsbeitrag
> news:3f72e448$1 @news.sihope.co m...[color=green]
>> Barry Pearson wrote:[color=darkred]
>> >
>> > The
>> > CSS standard actually treats "px" as relative, not absolute, and
>> > W3C recommend scaling based on the angle subtended at the eye.[/color]
>>
>> FYI, no browser that I know of has implemented px units per the W3C
>> specs, they all use screen pixels instead. Thus, px may be relative
>> units in theory, but in practice they are absolute.[/color]
>
> AFAIK there are 2 different interpretations of px sized CSS:
> - IE treats it as an absolute value and displays 1px = 1 screen pixel
> - Mozilla treats it as relative to text zoom in font sizes, causing
> different sizes when text zoom is on: At text zoom 150% a 12px font is
> displayed in 18px size, a 12px line in 12px size.[/color]
The discussion above isn't to do with such things as showing text at different
sizes depending on user options. Instead it is to do with what a user agent
should do with the "px" unit itself on "untypical" displays. See:
In effect, if the CSS specifies that something is (say) 1px, but the display
device displays significantly different from 90 "things" per inch, the
recommendation is to map it onto a different number of those "things". If, for
example, you have a TFT display with 180 display units per inch (often called
pixels or dots), then the recommendation is for the user agent to map that 1px
thing (a border, say) onto 2 display units (pixels or whatever) on the
display. So that it will occupy the same number of inches that it would on a
90 "things" per inch display. In other words, if you say that "margin-top:
90px", the recommendation is actually to treat this as request to make it
"about 1 inch", and treat this accordingly on other displays. (Well, sort of).
I suspect relatively few people know that! And it appears (I'm not surprised
at all) that it hasn't been implemented.
Just one more thing to confuse a poor photographer wanting to show pictures of
size X x Y on a screen, with text underneath a little bit narrower than X so
that it looks good!
--
Barry Pearson
Comment