html - Old Skool CSS Websafe Font Callout -


i'm working on customers website , insist use same font had before. previous (drupal) site had cascading style sheet callout:

 body { font: 76%/170% arial,sans-serif; }   

as understand it, correlates websafe font, browser looks users operating system , tries match font, in case arial first , if not, sans-serif. nothing downloaded web.

based on testing, native font size seems 16px, , native line height seems 20px. fractional percentage numbers indicate font-size (as ratio 16px) , line-height (as ratio calculated font-size). in case font-size observed (via whatfont) = 12.1667px , line-height of 20.6833px

the combination shown above seems have been common drupal selection, @ least appear google searches on topic.

this whole thing seems way odd. think...

 body{ font-family: arial, sans-serif; font-size:12px line-height:21px} 

makes more sense, communicates intent follow, etc. why % / % system identifying font-size? native height 16px? feels obfuscation nothing. there significant advantage anywhere? why code this? missing here?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -