View Single Post
Old 04-01-2016, 10:14 AM   #1047
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,090
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Francois_C View Post
Of course: This is the first thing I try. But sometimes it does not work. Maybe my knowledge of HTML and CSS is not sufficient.
Nah!

There is some really unnecessary coding that publishers include because THEY don't understand (care) inheritance or native defaults.


If you specify a font-size, it is an OVERRIDE of the previous-inherited size (no font-size: 1em; in a class, that cancels the <body> setting)

In most cases, I only specify what I want to CHANGE.
If I want a smaller font, I use a percentage (scales the body size)

I also use a unique, class for clarity when it encompasses the whole paragraph,
Code:
<p class="foo">Stuff</p>
instead of
Code:
<p class="foo"><span class="bold"><span class=:big">Stuff</span></span></p>
Bigger CSS, but smaller TEXT section files
theducks is offline   Reply With Quote