[FM Discuss] Booktype CSS

Martin Kean Martin.Kean at op.ac.nz
Mon Mar 26 04:55:34 PDT 2012


Hi,

I am browsing (but should be reading) the Booktype manual, and notice that in the chapters on CSS there are multiple kinds of measurement units for type, images, layout, namely ems, pixels and points.

eg.:
"Heading Examples

h1
{
     font-size: 36px;
     border-top: 1px solid #333333;
     border-bottom: 1px solid #333333;
     line-height: 1em;
     font-family: 'Times New Roman';
} "

Should the measurement unit be standardised?

If font size is defined at the start of the CSS document, with say, 

     html { font-size: 12pt; }

then all following measurement units could be in ems (height of an upper-case em).
So then 1em would equal 12pt. Good for PDF creation maybe.

Or:

     font-size: 100%;

which would default to the font-size set by the user agent, whether it's a browser, phone, or iPad.

Just putting it out there for discussion. Then again there are may be very valid reasons for having multiple measurement unit types.

There is also the 'rem' or root em unit - but not supported in early browsers.

Martin

______________________________________________________________________________

This email has been scrubbed for your protection by SMX.
For more information visit http://smxemail.com
______________________________________________________________________________





More information about the Discuss mailing list