Scintography Home
Previous ChapterTable of ContentsNext Chapter
Title Page

Appendix III: Dimensions


The Art of Scintography
Edition 3.0 © 2008 Aurora Isaac
www.scintography.com
    III.1   Browser Dimensions
      When browsers were first used, pages contained little markup, and were primarily text with occasional images. Viewers had control of font size, so text could be read on screen as easily by one viewer as another. Monitors were small enough that the width of a line of text was similar to that on a printed page. When printed, text wrapped neatly to fit on the paper, whatever its size or orientation.
      This simplicity didn't last long. As computer fonts became more like printed fonts, the more diverse viewer options became. At the same time, page formatting became more refined, and authors were faced with the challenge of making pages look good on an ever growing variety of viewer platforms. Along the way, dimensions appeared more and more as part of page markup. Most of these dimensions were in numbers of pixels.
      How big is a pixel? As it happens, a pixel does not have a well defined size. How big a pixel is depends on the viewer platform. Units in HTML are still limited to pixels and percentage of available space. Pages with only HTML markup still offer the viewer some degree of control over font size. STYLE, on the other hand, gives authors more control over dimension. Inches and centimeters are commonly used to size blocks of elements on a printed page. Points and picas are commonly used in sizing fonts. Of course, we still have the problem that however a dimension is specified, before it appears on screen, it is translated into pixels, and before it appears in print, it is converted from pixels back into absolute, printable dimensions.
96 pixels
1 inch
72 points
6em (12pt)
72 pixels

      The most common screen densities are 72px/inch and 96px/inch. As screen technology advances, this density may become a virtual density, as it is for printers, where the density, often expressed in dots per inch, or dpi, is not neccessarily related to the density specified in content formatting. 96 pixels on a 96px/in monitor will be printed from the browser as (approximately) 1 inch, regardless of the number of dots the printer uses to print one inch.
      Because of the variety of presentation platforms, sizing fonts can be a problem. The HTML font SIZE attribute gave authors 7 font sizes to choose from. These sizes can be resized by the viewer by changing the browser text size option. STYLE offers this same option, but also allows authors to specify absolute, non-resizable font dimensions.
 
HTML
Relative
STYLE
Absolute
STYLE
Relative
1 8pt 0.67em
2 10pt 0.83em
3 11pt 0.92em
4 12pt 1em
5 18pt 1.5em
6 24pt 2em
7 36pt 3em

      If you change the text size option on your browser and refresh this page, the absolute fonts will not change size, but the relative fonts will. Thus, a font intended to be about one sixth of an inch in size may range from 6 pixels or less to 32 pixels or more, which could significantly alter a page layout.
      So, how big is a pixel? There is no easy answer. The bottom line is, browsers attempt to make the screen rendition and the printer rendition of page elements about the same size as they would be on a traditionally printed page. Thus, readable font sizes are still between 8pt and 14pt, and readable lines of text are still about 4in to 6in, even on screens and printers the author of the page has never seen. Size your elements accordingly, but leave some leeway for variations in platform presentation.
    III.2   Style Units
Relative Length Units
em "M" The size of the "M" font
ex "x" The size of the "x" font
% percent Percent of allotted space
px pixels The size of a screen pixel
Absolute Length Units
in inches 1 inch = 2.54 centimeters
cm centimeters 1 inch = 2.54 centimeters
mm millimeters 1 centimeter = 10 millimeters
pt points 1 inch = 72 points
pc picas 1 inch = 6 picas

      The units em and ex are relative to the current font size. If % is applied to fonts, it is also relative to the current font, but if applied to a dimension such as width or height, it is relative to the available space. The unit px is relative to the screen density. Most viewers do not change the number of pixels per inch once it is set during configuration of the operating system. Although px dimensions may seem absolute to a single viewer, these dimensions may vary from platform to platform. The units in, pt, pc, cm, and mm are absolute. They should be approximately the same size on any system, but they cannot be resized by the viewer.
      In the table below, all the example fonts are about the same size on a monitor with the default font at 12pt (size 4). If you resize the browser text size, the absolute fonts do not change.
 
Absolute Units Relative Units
 
0.17in 0.42cm 12pt 1pc
 
 
1em 2ex 100%
 
    III.3   Unit Conversion
    in
cm
mm
pt
pc
Convert Units
Convert Units
in
cm
mm
pt
pc
   
    III.4   References
1 The Mad, Mad World of Pixels Per Inch (PPI)
http://www.webdevelopersjournal.com/columns/ajs_ppi.html

2 Microsoft Developers Network Library
http://msdn2.microsoft.com/en-us/library/default.aspx

3 : The relationship between FONT SIZE and physical type size
http://www.microsoft.com/typography/web/designer/face3.htm

4 : So Many Browsers - How Your Audience Can Make You a Better Web Developer, Mary Burk
http://msdn2.microsoft.com/en-us/library/aa140114.aspx

5 FotoFinish: Understanding Resolution
http://www.fotofinish.com/resources/centers/photo/resolution.htm?id=15950

All Contents © 2008 Aurora Isaac. All Rights Reserved. Legal Notices.
Previous ChapterTable of ContentsNext Chapter