![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 288
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 Code:
<span class="monospaced"> I can manually set Code:
font-size: 0.9em; |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 288
Karma: 3762916
Join Date: Nov 2011
Device: none
|
As in, what software? I'm using KOReader on a Kobo Elipsa. It's possible to make global style tweaks using the "Style tweaks" feature.
As an example, it would be lovely if I could make an rule that works for all saved Wikipedia articles. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,742
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But not every eBook will use the same CSS for monospace. So while you can deal with some, you cannot deal with all.
Is there a way in KOReader to change the font used for monospace? That would solve the problem by finding a replacement monospace font that fits. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 523
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
What I use is:
Code:
pre, xmp { font-size: 80% !important; } |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOreader rendering: CSS rule after @namespace ignored | maraskan_user | KOReader | 4 | 01-27-2021 05:58 AM |
modify permanently pocketnews.css | duns | PocketBook Developer's Corner | 0 | 01-13-2019 10:21 AM |
batch modify a CSS property? | roger64 | ePub | 4 | 09-29-2017 05:12 PM |
Confusing global definitions in css | bfollowell | ePub | 14 | 03-23-2014 09:21 PM |
Global css | triplemaya | Sigil | 9 | 12-04-2011 07:17 PM |