08-16-2021, 01:44 PM | #331 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2021
Device: macbook
|
It worked, thank you very much!
300% was just an example, I did not really need it. But some fonts are good at 120-140% line spacing, others at 100%. |
08-16-2021, 05:27 PM | #332 |
Guru
Posts: 762
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
|
Advert | |
|
08-16-2021, 09:16 PM | #333 | |
Bibliophagist
Posts: 39,828
Karma: 154147706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
08-17-2021, 06:05 PM | #334 |
Guru
Posts: 762
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
I assure you, it was not me
|
09-12-2021, 05:26 AM | #335 |
Enthusiast
Posts: 42
Karma: 10
Join Date: May 2009
Device: PRS-505
|
How can I add spacing after paragraphs in the Calibre viewer's CSS style sheet? "p {margin-bottom:1.5em}" doesn't work.
Thanks for this thread, it's really helpful! Edit: Kovid answered this already above: it's "p { margin-bottom: 1rem !important }". |
Advert | |
|
12-09-2021, 05:19 PM | #336 |
Evangelist
Posts: 467
Karma: 369018
Join Date: Nov 2010
Device: BL Alita/Mimas/Ares, OB Note2/Note, KA One/H2O/HD, S PRS T2/T1, PB 902
|
I have the opposite problem:
how to get rid of spacing between paragraphs. I even tried to re-convert with the Calibre converter with --remove-paragraph-spacing Zero effect. The Calibre viewer still shows gaps between paragraphs. FBReader shows correctly, though. No gaps between paragraphs. Oh, it seems that the Calibre stand-alone converter simply added br twice(!) instead of creating p, when converting docx to epub: <br class="calibre9"/><br class="calibre9"/> So the problem was caused not by the Calibre viewer but by the Calibre converter. A replace all is needed. One br is quite enough. Well, I am not sure if I can really blame the Calibre converter either. It finds that double br in the docx xml: </w:t><w:br/><w:br/><w:t> and it is dumb (or smart?) enough to repeat it. No, nothing smart about it Last edited by parkher; 12-09-2021 at 06:09 PM. |
01-12-2022, 03:34 PM | #337 |
Evangelist
Posts: 440
Karma: 77256
Join Date: Sep 2011
Device: none
|
I was trying to have sort of a custom theme for both light and dark mode. As one cannot set such, is it possible to perhaps accomplish such with CSS? I tried using color and background color with body.calibre-viewer-dark-colors without success.
|
01-22-2022, 09:16 AM | #338 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2022
Device: Windows
|
Text off the page w background image
I haven't used Calibre in quite some time, but downloaded the most recent version today to give it a try. The reason I stopped was because, until maybe 5 or so updates ago, I used to be able to read a two-page ebook with a background image just fine. Zero problems. But after and since some recent updates, the text is just crammed into the page when I use 2-page with a bg image.
At least one letter of a word is cut off either on the left or right side and the center is also 'crammed.' I hadn't changed any settings except to update. I downloaded the latest version to see if the old behavior had returned, but it's identical to back when I quit. Anyone know why this is happening? No bg image works sort of ok, but as soon as I add an image (any image) the run-off-the-page-edges problem comes right back. Last edited by lexexed; 01-22-2022 at 09:19 AM. |
02-10-2022, 03:39 AM | #339 |
Junior Member
Posts: 5
Karma: 10
Join Date: Feb 2022
Device: Kobo Clara HD
|
scaling all images in an ebook
I'm not sure if it's my high DPI display or the particular ebooks I have gotten are badly formatted, but the sizes of images are extremely out of proportion with the text zoom or the size of the viewer. Most CSS image instructions set image sizes in absolute terms or relative to the size of the container. transform: scale will end up with images overlapping the text.
To scale all the images in an ebook up without ruining the formatting you can add Code:
img { zoom:200%; } |
02-11-2022, 06:00 PM | #340 |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2022
Device: none
|
CSS for Header and Footer
Is it possible to access the header & footer (the one that displays "Book title", "Top level section", etc) in the ebook viewer via css? I already tried:
footer, header {} . Not sure if that's right though. It doesn't seem to work... |
02-11-2022, 06:44 PM | #341 |
Well trained by Cats
Posts: 30,409
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
VIEWER Headers and footers are controlled by the viewers Preferences:headers and Footers (settings )
This does not make use of any present IN the book (IMHO such paper relics have no place as there are no pages for the to reside) |
02-22-2022, 11:44 PM | #342 |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2022
Device: Windows laptop
|
I have this problem where Italic text is cut out on the right side, tried different fonts, and margins and padding, even aligning text to the left, but sometimes it still gets cut out, any suggestions?
You can see the final e of Maybe in the picture that I posted. Last edited by grandixximo; 02-22-2022 at 11:47 PM. |
02-22-2022, 11:52 PM | #343 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2022
Device: Windows laptop
|
Quote:
Figured it out, just after posting this * { padding-right: 10px !important } |
|
02-22-2022, 11:53 PM | #344 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Feb 2022
Device: Windows laptop
|
Quote:
Code:
* { padding-right: 10px !important } |
|
02-23-2022, 06:03 PM | #345 |
Evangelist
Posts: 440
Karma: 77256
Join Date: Sep 2011
Device: none
|
Is it possible through CSS to get EPUB page numbers to show in the margin? I thought it was and vaguely recall I was able to once before. But I lost track of where I found it or how to. Haven’t been able to get it working. Official support in someway would be nice but CSS is ok for now.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom CSS for output | deckoff | Calibre | 1 | 08-28-2010 11:55 PM |
ePub with custom .css on a 505 | dicknskip | Sony Reader Dev Corner | 3 | 06-09-2010 11:34 PM |
User stylesheets for ePub files | salty-horse | Sony Reader Dev Corner | 12 | 02-23-2010 07:44 AM |
ePub conversion: override existing css with a custom one | sbin | Calibre | 1 | 01-09-2010 04:03 AM |
Calibre's generated css for epub | brewt | Calibre | 7 | 12-29-2008 09:59 AM |