On 2009/12/28 00:05 (GMT-0500) David Laakso composed: > David Hucklesby wrote:
>> Further to Felix's good advice to stick to 2 decimal places in >> "em" sizes (so no fractions of 1%)... >> I find I get the most consistent results from using these percentages, >> which scale quite well. For example, if font-size of 82% gives 13px, >> then 5em will very likely give 65px in all browsers. > Huh? Is it really so difficult to use CSS in order to make words > consistently the same size and easy to read on a screen cross-browser > that one needs to resort to that kind of pseudo scientific gibberish? "Pseudo scientific gibberish"? Where/what/how? OTOH, I do see an apparent math problem. For 5em to be 65px would mean 1em has to be 13px, but that's inconsistent with 82% being 13px unless cascade converted 1em from 16px down to 13px. Really, if one simply stops thinking in px for sizing, adaptive design (fluid, liquid, jello, elastic, etc.) can be easier. Default defaults can instead be thought of as 16ths for fractions of 1em, which often works out better for rounding, since puters natively operate in binary rather than decimal: 1/16 = 6.25% round up to .07em 2/16 = 12.5% round up to .13em 3/16 = 18.75% round up to .19em 4/16 = 25% = .25em 5/16 = 31.25% round up to .32em 6/16 = 37.5% round up to .38em 7/16 = 43.75% round up to .44em 8/16 = 50% = .5em etc. When you want line lengths of 60 chars (480px), use 30em. When you want nav links width of 18 chars (144px), use 9em. When you have a 240px intrinsic width image, set its width to 15em. Etc. Then when a user's actual default is something other than 16px to start with, the proportions will nevertheless hold up reasonably, remembering of course that most visitors visit using personal computers that they may have personalized beyond mere changing of desktop wallpaper, plus: http://dowebsitesneedtolookexactlythesameineverybrowser.com/ -- " We have no government armed with power capable of contending with human passions unbridled by morality and religion." John Adams, 2nd US President Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://fm.no-ip.com/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/