473,385 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

About font sizes

As I understand it, most browser manufacturers have agreed on 16px for their
default font size.

So, this should be an accurate conversion for percentages:

px %

16 = 100
14 = 87.5
13 = 81.25
12 = 75
10 = 62.5

I assume it's better to stick to a percentage that will yield a round number -
rather than using something like 90% to get 14.4. A browser will just round up
or down to a font size it can display, correct?

As for em, am I correct in saying 1em = 16px?

Does that mean 1.2em is 19.2px (rounded by the browser to 19px - if the default
size is 16)?

Jun 10 '06
60 4686
deko <de**@nospam.com> scripsit:
You may already know that Microsoft's
new IE 7 does NOT have a "default font size" feature.
What on &planet; are you talking about? IE 7, which currently exists as beta
only, has as good and as poor font size control as IE 6. (Zooming is nice,
but a completely different issue.)
These sizes [defined in pixels by author] are entirely legible for the
vast majority of
readers.
One size fits all, you mean?
If someone has a vision problem (or just wants to see
larger text), adjustments can be made using the browser.
Sizes defined in pixels cannot be adjusted, except by changing the size of a
pixel. Browsers that behave differently behave against CSS specifications.
Such sizes can be _overridden_ of course, but this means that all size
differences in author style sheet are lost.
So who
cares if font sizes are designated in px or percent? Both are
adjustable.


The px unit denotes a pixel. Don't you know what a pixel is? (It has
somewhat different meanings in common IT language and in CSS terminology,
but in either meaning, it is by essence not adjustable the way you imply.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 19 '06 #51
> So go back to DTP. The web is obviously not for you.

I surfed around a number of mainstream sites and looked at their stylesheets -
all but one had px-designated font sizes. That's a small sample, but I think
it's safe to assume the majority of designers are using, and will continue to
use, px-sized fonts - just as the majority of users will not adjust their
default font size.

The web is not only for me, it is me. The percentage-size font police are the
ones out of step with reality.
Jun 19 '06 #52
Deciding to do something for the good of humanity, deko
<de**@nospam.com> declared in
comp.infosystems.www.authoring.stylesheets:
I surfed around a number of mainstream sites and looked at their stylesheets -
all but one had px-designated font sizes.


Shock! Horror! Lots of web sites have bad coding! Who would have
thought?

*sigh*

As Alan (Flavell) said recently in ciwah, 'the saying about "billions of
flies can't be wrong" comes unappetisingly to mind'.

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
Jun 19 '06 #53
deko wrote:
In time, I expect percentage-based font-sizing to become a thing of the past.


You're probably right. I don't remember the Enterprise's holodeck ever
asking me for a default font size.

However, in this century's web, you're still wrong.

--
-bts
-Warning: I brake for lawn deer
Jun 19 '06 #54

In article <10****************@markparnell.com.au>,
Mark Parnell <we*******@clarkecomputers.com.au> writes:
The only argument against using px-sized fonts is that of preference.


That they aren't relative to the user's preference, yes. And that they
aren't resizable (without delving into obscure accessibility settings)
in IE.


You can click an icon on the IE toolbar and choose among five
different font sizes. What's so obscure about that?

Granted, most web pages become garbled when you do this, but that's
the fault of incompetent web designers.
--

Warren S. Sarle SAS Institute Inc. The opinions expressed here
sa****@unx.sas.com SAS Campus Drive are mine and not necessarily
(919) 677-8000 Cary, NC 27513, USA those of SAS Institute.
Jun 27 '06 #55
On Tue, 27 Jun 2006, Warren Sarle wrote:
You can click an icon on the IE toolbar and choose among five
different font sizes. What's so obscure about that?


It is poor! It's like American clothing sizes: You can only
choose between S, M, L, XL.

Can you imagine a word processor or page layout program that
gives the user a choice between S, M, L, XL for font size?

Jun 27 '06 #56
Warren Sarle wrote:
In article <10****************@markparnell.com.au>,
Mark Parnell <we*******@clarkecomputers.com.au> writes:
The only argument against using px-sized fonts is that of
preference.
That they aren't relative to the user's preference, yes. And that
they aren't resizable (without delving into obscure accessibility
settings) in IE.


You can click an icon on the IE toolbar and choose among five
different font sizes. What's so obscure about that?


Text will not resize in IE if the author assigned px (or pt) sizes.
Granted, most web pages become garbled when you do this, but that's
the fault of incompetent web designers.


...as is using px. :-)

--
-bts
-Warning: I brake for lawn deer
Jun 27 '06 #57
On Tue, 27 Jun 2006, Warren Sarle wrote:
In article <10****************@markparnell.com.au>,
Mark Parnell <we*******@clarkecomputers.com.au> writes:
The only argument against using px-sized fonts is that of
preference.
That they aren't relative to the user's preference, yes. And that
they aren't resizable (without delving into obscure accessibility
settings) in IE.


You can click an icon on the IE toolbar and choose among five
different font sizes.


All of which will be the same size, if the author has already set the
size in px units.
What's so obscure about that?


I might ask you the same question. You quoted the clear statement of
the truth:
they aren't resizable (without delving into obscure accessibility
settings) in IE.


, and you immediately started saying the opposite. Not good.

I suppose you wouldn't care to actually *try* it, hmmm?
Jun 27 '06 #58
"Alan J. Flavell" <fl*****@physics.gla.ac.uk> wrote in message
news:Pi*******************************@ppepc87.ph. gla.ac.uk...
On Tue, 27 Jun 2006, Warren Sarle wrote:
...
You can click an icon on the IE toolbar and choose among five
different font sizes.
All of which will be the same size, if the author has already set the
size in px units.


No, they won't, regardless of what units are used in the CSS.
I suppose you wouldn't care to actually *try* it, hmmm?


I use that feature in IE6 all the time. I use the medium setting for most
pages and switch to smaller or smallest for pages that are horribly
garbled at medium.
Jun 28 '06 #59
Deciding to do something for the good of humanity, Warren Sarle
<sa****@unx.sas.com> declared in
comp.infosystems.www.authoring.stylesheets:
I use that feature in IE6 all the time. I use the medium setting for most
pages and switch to smaller or smallest for pages that are horribly
garbled at medium.


If it works on pages where the font sizes have been specified in px,
then at some point you must have delved into the accessibility options I
mentioned. It is well documented (and easily tested) that IE does *not*
resize fonts sized in px, unless you tell it to "Ignore font sizes
specified in web pages" (under Tools>Internet Options>Accessibility).
This setting is off by default.

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html
Jun 28 '06 #60
Warren Sarle wrote:
"Alan J. Flavell" <fl*****@physics.gla.ac.uk> wrote in message
news:Pi*******************************@ppepc87.ph. gla.ac.uk...
On Tue, 27 Jun 2006, Warren Sarle wrote:
...
You can click an icon on the IE toolbar and choose among five
different font sizes.


All of which will be the same size, if the author has already set
the size in px units.


No, they won't, regardless of what units are used in the CSS.
I suppose you wouldn't care to actually *try* it, hmmm?


I use that feature in IE6 all the time. I use the medium setting for
most pages and switch to smaller or smallest for pages that are
horribly garbled at medium.


With your IE set at Medium, have a look at this page:
http://k75s.home.att.net/fontsize.html

and change your IE size from Medium to Largest, then report back what
happened to the text in the blue box to the right.

--
-bts
-Warning: I brake for lawn deer
Jun 28 '06 #61

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hostile17 | last post by:
What's considered to be the definitive version of a "good font settings" style sheet? That is, one which allows nearly all modern browsers, and Netscape 4, to get readable text. The basis of...
131
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately...
7
by: gino | last post by:
Dear all, My monitor was set to 1600x1200 so the fonts in IE is too small for me even when I set the "View->Text Size->Largest"... I don't have previlage to change the monitor resolution... ...
23
by: BobK | last post by:
Hello Everyone, I am updating the CSS for my site but want new and original page to appear the same. My original CSS permits small increments of zooming (ctrl/mouse wheel) so that you get...
39
by: David Jubinville | last post by:
Hi All, I've run into a bit of an interesting problem with CSS and font DPI and would certainly welcome help. Problem: Page layout defined in CSS has font size issues (overlapping frames,...
300
by: Ståle Sæbøe | last post by:
I am a bit curious about this. The graphic design people I work with say it is their preferred font for web pages. The reason being that it is "kinder" to the eye both in terms of shape and...
40
by: Paul Davis | last post by:
Hi all, I'm building some style sheets and trying to play the old game of balancing designer pixel perfection and still allowing users to adjust their font sizes. The compromise I've made with the...
16
by: Frank Steinmetzger | last post by:
Hello Group On my website I used to have Tahoma 8pt defined in my CSS styles. That gives me the "normal" font Windows uses everywhere in its dialogues. However, on Linux things seem to be...
53
by: Jonas Smithson | last post by:
In his book "CSS: The Definitive Guide" 2nd edition (pgs. 116-117), Eric Meyer has an interesting discussion about "font-size-adjust" that was evidently dropped in CSS 2.1 due to browser...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.