Michael Hulse wrote:
>Hello,
>
>I have always specified a unit when coding my CSS (except units of 0).
>I am wondering what, when, why, and where I would be specifying a raw #
>for units? Examples?
>
>Should I be coding like so:
>
> font: normal 76.1%/125 "Lucida Sans Unicode", verdana, helvetica,
>sans-serif;
>
>
First off I do not know how you should be coding.
A lot depends on the layout, the method you use to set the fonts, and
individual browsers quirks you may be attempting to overcome. When it
comes to fine typography, one size does not fit all. The rule of thumb,
I believe, is to use whatever method(s) necessary to make the content
readable. In order to do that I use raw number line-height most of the
time. But sometimes you gotta' mix and match.
FWIW, I would set your sample above something like:
body { font-family: 'Lucida Grande', 'Nimbus Sans', 'Luxi Sans', Arial,
sans-serif; }
and use percent on font-size for individual selectors /except for the
content text which needs no adjustment/ with raw number line-height
where needed.
Even so, it might in some instances, be necessary on /some/ selectors to
use percent /or/ em for line-height.
or
body { font: 100.01%/1.35 'Lucida Grande', 'Nimbus Sans', 'Luxi Sans',
Arial, sans-serif; }
with the same notations as the above example for line-height and its
exceptions..
>Your thoughts would be greatly appreciated.
>
>
Typography is about making the printed word readable. The Web
complicates that. Make yourself very tiny and let the goal be to /please
your users/. With or without raw numbers.
>Thanks list,
>Cheers,
>Micky
>
>
Best,~dL
--
David Laakso
http://www.dlaakso.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/