View Single Post
Old 04-20-2022, 04:37 AM   #1
pickyaxe
Addict
pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.
 
Posts: 289
Karma: 3762916
Join Date: Nov 2011
Device: none
Global CSS rule to modify all monospace text?

I confess I don't know much CSS. What I would like is some way to modify all text that is declared as
Code:
font-family: monospace
or
Code:
<span class="monospaced">
to have a smaller font size. This is because all monospace fonts are just a little larger than the non-monospace fonts which is annoying in programming eBooks (for example).

I can manually set
Code:
font-size: 0.9em;
for code blocks in the relevant ePub, but if there was a way to do this for all books via a global tweak, that would be great.
pickyaxe is offline   Reply With Quote