Re: [WSG] Which unit is better for web site font size?

2006-02-02 Thread alejandro poch

Hi Roberto

Take a look at W3C tips Care With Font Size

http://www.w3.org/QA/Tips/font-size

Salu2



Roberto Santana wrote:


Hello,

Which unit is better for web site font size? em px % ...

Thanks!
Roberto Santana





**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


 



**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-02 Thread Roberto Santana

thanks, very interesting article.

Regards,
R. Santana

alejandro poch escribió:


Hi Roberto

Take a look at W3C tips Care With Font Size

http://www.w3.org/QA/Tips/font-size

Salu2



Roberto Santana wrote:


Hello,

Which unit is better for web site font size? em px % ...

Thanks!
Roberto Santana






**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


 



**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



htank
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-02 Thread Hopkins Programming
Use em or %.

Em is probably the best, but since IE6 has font-size:large as the
default, using font-size:1em for the body makes stuff look big in IE.
I usually use %'s. These work well, like the em, but it compensates for IE's larger-than-normal font size.

--ZacharyOn 2/2/06, Roberto Santana [EMAIL PROTECTED] wrote:
thanks, very interesting article.Regards,R. Santanaalejandro poch escribió: Hi Roberto Take a look at W3C tips Care With Font Size 
http://www.w3.org/QA/Tips/font-size Salu2 Roberto Santana wrote: Hello, Which unit is better for web site font size? em px % ...
 Thanks! Roberto Santana ** The discussion list for
http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list  getting help
 ** ** The discussion list for
http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list  getting help
 **htank**The discussion list forhttp://webstandardsgroup.org/
 See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list  getting help**
-- ==The best way to predict the future is to invent it.  
[EMAIL PROTECTED] http://www.hopkinsprogramming.net


RE: [WSG] Which unit is better for web site font size?

2006-02-02 Thread Geoff Pack


Pixels per inch (PPI)

That's what I like about standards. The rest of the world uses the Metric 
system, yet we are stuck with these archaic units because the U.S. refuses to 
get with the program.

How's that for a 'moral high horse'? ;)

cheers,
Geoff.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of liorean
 Sent: Thursday, 2 February 2006 8:35 AM
 To: wsg@webstandardsgroup.org
 Subject: Re: [WSG] Which unit is better for web site font size?
 
 
 On 01/02/06, Brian Cummiskey [EMAIL PROTECTED] wrote:
  Minh D. Tran wrote:
   My personal preference has always been pt. I've looked at many
   professional source codes and alot of them uses px or % 
 to measure size
   of items (divs, img, etc), em for positioning, and pt for 
 font sizes.
  pt is for PRINT media, not screen.
 
 Wrong. Points are for all devices that operate at different ppi* than
 96. Points have a locked points per logical inch resolution of 72.
 Pixels vary depending on ppi. So, if a medium has 96 ppi then a 12pt
 text will be rendered as 12*96/72=16px. If a medium has 120 ppi, then
 the same 12pt text will be rendered as 12*120/72=20px. If a device has
 300 ppi, the 12pt text will be rendered as 12*300/72=50px. And the
 reverse is also true. That means that 16px text on a 96 ppi medium
 will be rendered the same size as 16*72/96=12pt. If a medium has 120
 ppi, 16px text will be rendered as 16*72/120=9.6pt, and if a medium
 has 300 ppi the 16px text will be rendered as 16*72/300=3.84pt.
 ...except for the fact that the CSS reference pixel is defined at
 about 1/96 inch and not the actual medium pixels, so a smart renderer
 that knows about it's medium's ppi might scale it and thus make sure
 that 16px=12pt is always true. That knowledge or it's implementation
 for that matter is not guaranteed, however.
 
 * Pixels per logical inch, which is about equivalent to dots per
 physical inch as is used in print media. Default in Windows is 96
 (Windows even calls it DPI), or 120 for large size.
 --
 David liorean Andersson
 uri:http://liorean.web-graphics.com/


**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



[WSG] Which unit is better for web site font size?

2006-02-01 Thread Roberto Santana
Hello,

Which unit is better for web site font size? em px % ...

Thanks!
Roberto Santana

 



**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-01 Thread Brian Cummiskey

Roberto Santana wrote:

Hello,

Which unit is better for web site font size? em px % ...


Better is like beauty--  it's in the eye of the beholder.

http://css-discuss.incutio.com/?page=UsingFontSize

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-01 Thread Minh D. Tran
My personal preference has always been pt. I've looked at many professional source codes and alot of them uses px or % to measure size of items (divs, img, etc), em for positioning, and pt for font sizes.Minh"Joseph R. B. Taylor" [EMAIL PROTECTED] wrote:  It's my understanding that "em" is the very best way as it'll work with the user's preferred text size. "px" obviously gives you the most control as the designer, but doesn't scale in IE when the user changes their text size.There are other existing issues, but that pretty much covers it.I myself use both depending on the situation. I've never used a "%" measurement.Hopefully that helps.Joseph R. B. TaylorSites by Joe, LLChttp://sitesbyjoe.com(609)335-3076[EMAIL PROTECTED]Roberto Santana
 wrote: Hello,  Which unit is better for web site font size? em px % ...  Thanks! Roberto Santana  ** The discussion list for http://webstandardsgroup.org/  See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list  getting help **   **The discussion list for http://webstandardsgroup.org/See http://webstandardsgroup.org/mail/guidelines.cfmfor some hints on posting to the list  getting help**  __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam
 protection around http://mail.yahoo.com 

Re: [WSG] Which unit is better for web site font size?

2006-02-01 Thread Brian Cummiskey

Minh D. Tran wrote:
My personal preference has always been pt. I've looked at many 
professional source codes and alot of them uses px or % to measure size 
of items (divs, img, etc), em for positioning, and pt for font sizes.
 
Minh


pt is for PRINT media, not screen.

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-01 Thread Francesco
--- Christian Montoya [EMAIL PROTECTED] wrote:

 html { font-size:100.01%; }
 body { font-size: 1em; }  // this is a bug fix for
 browser compatibility

Why do you need this?  I don't use font-size hacks in
my CSS yet my fonts look exactly the same in all
browsers.

Francesco

Francesco Sanfilippo
Web Architect and Software Developer
http://www.blackcoil.com
[EMAIL PROTECTED]
402-932-5695 home office
402-676-3011 mobile

Professional web developer and Internet consultant with 10 years experience.
Specializing in ASP.NET, C#, SQL Server, CSS/XHTML, and digital photography.
Founder and developer of URL123.com - now serving 2 million clicks per month.
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-01 Thread Christian Montoya
On 2/1/06, Francesco [EMAIL PROTECTED] wrote:
 --- Christian Montoya [EMAIL PROTECTED] wrote:

  html { font-size:100.01%; }
  body { font-size: 1em; }  // this is a bug fix for
  browser compatibility

 Why do you need this?  I don't use font-size hacks in
 my CSS yet my fonts look exactly the same in all
 browsers.

First of all, it's not a hack. Second of all, you haven't seen the
browsers that really do need this. It covers a lot of issues such as
various DPI and rendering errors and such. Read:

http://css-discuss.incutio.com/?page=InternetExplorerWinBugs

... first item on the list.

--
--
Christian Montoya
christianmontoya.com ... rdpdesign.com ... cssliquid.com
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-01 Thread liorean
On 01/02/06, Brian Cummiskey [EMAIL PROTECTED] wrote:
 Minh D. Tran wrote:
  My personal preference has always been pt. I've looked at many
  professional source codes and alot of them uses px or % to measure size
  of items (divs, img, etc), em for positioning, and pt for font sizes.
 pt is for PRINT media, not screen.

Wrong. Points are for all devices that operate at different ppi* than
96. Points have a locked points per logical inch resolution of 72.
Pixels vary depending on ppi. So, if a medium has 96 ppi then a 12pt
text will be rendered as 12*96/72=16px. If a medium has 120 ppi, then
the same 12pt text will be rendered as 12*120/72=20px. If a device has
300 ppi, the 12pt text will be rendered as 12*300/72=50px. And the
reverse is also true. That means that 16px text on a 96 ppi medium
will be rendered the same size as 16*72/96=12pt. If a medium has 120
ppi, 16px text will be rendered as 16*72/120=9.6pt, and if a medium
has 300 ppi the 16px text will be rendered as 16*72/300=3.84pt.
...except for the fact that the CSS reference pixel is defined at
about 1/96 inch and not the actual medium pixels, so a smart renderer
that knows about it's medium's ppi might scale it and thus make sure
that 16px=12pt is always true. That knowledge or it's implementation
for that matter is not guaranteed, however.

* Pixels per logical inch, which is about equivalent to dots per
physical inch as is used in print media. Default in Windows is 96
(Windows even calls it DPI), or 120 for large size.
--
David liorean Andersson
uri:http://liorean.web-graphics.com/
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-01 Thread Felix Miata
Joseph R. B. Taylor wrote Wed, 01 Feb 2006 14:13:13 -0500:
 
 px obviously gives you the most control as the designer, 

The control is illusory as to users with modern browsers, since they
have the power to zoom and set a minimum font size, in addition to the
power to disregard your styles entirely, and veto power to apply very
specific overruling styles.

 but doesn't scale in IE when the user changes their text size.

This is true, but it understates the problem. The problem is that px
sizes bear no relationship to user defaults. Users are free to set
defaults to whatever size best suits, which sizes in px totally
disregard.
-- 
Love your neighbor as yourself.Mark 12:31 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://mrmazda.no-ip.com/auth/

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] Which unit is better for web site font size?

2006-02-01 Thread Felix Miata
Christian Montoya wrote Wed, 1 Feb 2006 14:10:40 -0500:
 
 For the record, most browsers default text size is 16px = 1em = 100%.
 That's most, not all.

While as a practical matter this is true, technically it isn't true.
Some browsers have a default size in px, but others, including all
versions of IE, have a default size in pt. IE's default is 12pt.

12pt means 16px only when the working DPI is 96. 96 DPI has historically
been the windoze default, which is how one gets away with claiming it
defaults to 16px. The problem is that the default 96 DPI isn't any
longer so easy to presume. Laptop sales have for a while outnumbered
desktop sales, and many higher resolution laptops are configured by
their manufacturers to 120 DPI by default. 12pt @ 120 DPI is 20px.

Just as with default font size, doze users are free to configure to
other DPI values. This is how it has always been with Linux, where 96
DPI is clearly an exception rather than a rule. In most cases Linux's
DPI is less than 96 if accurately set.

OTOH, DPI values in excess of 120 are no longer ususual either, and are
set to average quite a bit higher before long if the promise of $100
laptops for children materializes.
http://chronicle.com/free/2005/11/2005111602t.htm

So, counting on the ubiquity of a 16px default is considerably less safe
than it used to be.

For those interested in DPI derivation without a calculator, visit:
http://mrmazda.no-ip.com/auth/dpi.html
-- 
Love your neighbor as yourself.Mark 12:31 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://mrmazda.no-ip.com/auth/


**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**