View Single Post
Old 11-27-2019, 04:29 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,087
Karma: 148029447
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Turtle91 View Post
Here's a short discussion on the differences: CSS Font-Size: em vs. px vs. pt vs. percent

There is some benefit to working in percent, but as long as you set the font size in % in the <body> then ALL other (font-size) references can be made in EM to keep them relative to each other regardless of screen size.

eg:

Code:
body {font-size:100%}
p    {font-size:1em}
h1   {font-size:1.5em}
h2   {font-size:1.3em}
h3   {font-size:1.2em}
h4   {font-size:1.1em}
um...

Code:
p {font-size: 1em}
h1 {font-size: 2em}
h2 {font-size: 1.5em}
h3 {font-size: 1.17em}
h4 {font-size: 1em}
h5 {font-size: .83em}
h6 {font-size: .67em}
JSWolf is offline   Reply With Quote