View Single Post
Old 04-27-2014, 04:28 AM   #64
Sunlite
Addict
Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.
 
Sunlite's Avatar
 
Posts: 206
Karma: 547516
Join Date: Mar 2008
Location: Berlin, Germany
Device: KObo Clara, Kobo Aura, PRS-T1, PB602, CyBook Gen3
The font size in html/css is set relative if you use either em or percent.

1em = 100%
2em = 200%

The value always changes the font size given by the parent.
If no font size is given, the font size of the parents parent is used.

Somewhere in either your css or the cs f the reading software a font size is given in px or pt.
That is font size all relative font sizes are based on.

In your example let say the base font size of your epub is 14pt.

In h1 you change it to 2em = 200%. The font size of the heading 1 becomes 28pt (14*2).
The font size of .subtitle is not changed so it inherits the font size of its parent the h1 class.
The class .subsubtitle has a set font size of 1em = 100% which means 1 time the font size of its parent h1 (28 * 1). To make the font size smaller, you will have to use an em value smaller that 1.
Sunlite is offline   Reply With Quote