F
fefewf
why is using pixel font sizes wrong?
Because for folks who use MSIE that cannot change the size. If a visitorfefewf said:why is using pixel font sizes wrong?
Because for folks who use MSIE that cannot change the size.
If a visitor cannot read the text...bye-bye visitor.
If you use em to size your fonts, it's like your library having
large-print versions of every book. This simple practice allows you to
offer a large-print version of your site.
Jukka said:Scripsit Jonathan N. Little:
I wonder whether we being trolled.
Actually, there is one mistake and one misleading point in that
statement, although it's generally a good answer to people asking stupid
questions. Oops... there are no stupid questions, just... But to the point:
1) People using Internet Explorer (officially called Windows Internet
Explorer now, though some people prefer using the older full name or its
abbreviation) _
can_ change font sizes on web pages. Most of them just
don't know how. (They need to use a setting that overrides _all_ font
sizes set on web pages, or use a user style sheet with !important.) Even
fewer also care to, so the basic conclusion is indeed:
2) The misleading part is that the formulation suggests that this is
some kind of browser peculiarity, rather than the way browsers are
required to behave. If you set font size in pixels, then pixels shall it
be. This is one of the few things that IE implements by the book and
many other browsers don't.
Letting font size increase affect such sizes
is comparable to having a control that lets the user specify the size of
a millimeter or the duration of a second. (In fact, the size of
millimeter, inch etc. _do_ change if the monitor resolution is changed,
but this is a different oddity.)
Except that this also happens if you don't set font size at all.
However, setting font-size: 100% is recommended (though it is dummy in
principle) as a weapon against some browser bugs. Using % is somewhat
less risky than using em for font size, again due to browser bugs.
Jukka K. Korpela said:In fact, the size
of millimeter, inch etc. _do_ change if the monitor resolution is
changed, but this is a different oddity.
"Jukka K. Korpela said:In fact, the size of millimeter, inch etc. _do_
change if the monitor resolution is changed, but this is a different
oddity.
Sherm Pendley said:(1) Mozilla is one exception - its control panel has a pane where you can
hold a ruler up to the screen to calibrate the PPI setting it uses when
translating physical units into pixels.
why is using pixel font sizes wrong?
Sherm said:(1) Mozilla is one exception - its control panel has a pane where you can
hold a ruler up to the screen to calibrate the PPI setting it uses when
translating physical units into pixels.
Most IE(okay?) users are ignorant enough of the menu "View > Text Size>
..." let alone fool with user stylesheets. Sorry just been my observation.
- Bob - said:Suggesting that it needs to resize endlessly to any browser
width is like suggesting that an architect's building design should be
able to be optically stretched to fit on any lot... just let all the
windows, doors, walls, plumbing, heating, etc all stretch to a smaller
or larger lot size.
Exactly the point. Developers debate this font issue endlessly - most
users don't even realize IE has menus. I've never met a non-developer
who knew what a sytlesheet was. Too many techies worry about picayune
minutia that matters only to other techies.
WIE, or should I say WEE! Whatever. I like MS's naming that lends to the
already entrench misconception that MS(W)IE is required to browse the
Internet on Windows system.
Most IE(okay?) users are ignorant enough of the menu "View > Text Size>
..." let alone fool with user stylesheets. Sorry just been my observation.
Agreed. Although it is small consolation on what they miss... but hey,
if all browsers followed a common spec where would be the challenge in
web design?
Agreed, discrete units px, in, cm, ... should not be user adjustable.
But that said, their implementation in webpages' visual style should be
carefully considered. The ramifications of bad design would be more
severe if browsers like Firefox didn't break the rules, been to some
sites that would not be accessible at all!
But, it the bug in question concerning that MS browser, and occurs if
you use em units to set the base font size? If you set the base font
size with % you can reference off of that in em's without problems?
body { font-size: 100%; }
.legalese { font-size: .75em; }
Vaxius said:On Sep 29, 1:25 pm, "Jonathan N. Little" <[email protected]>
wrote:
There's no base font-size here: 100% of what?
the BODY is the base of the displayed document, text outside of the BODY
element is not presentational.
body { font-size: 100%; }
means 100% of the "user defined | browser default" font size, all other
displayed elements are children of the BODY and are referenced off of
its settings...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.