05-16-2022, 02:51 PM | #346 | |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2022
Device: Windows desktop
|
Quote:
body { font-family: Verdana, Geneva, Tahoma, sans-serif; color:rgb(0,0,0); background-color:rgb(174,174,174); text-align:justify; line-spacing:1.8; margin-top:0px; margin-bottom:4px; margin-right:50px; margin-left:50px; text-indent:3em;} h1, h2, h3, h4, h5, h6 {color:black; text-align:center; font-style:italic; font-weight:bold;} |
|
05-17-2022, 01:35 PM | #347 |
Well trained by Cats
Posts: 30,397
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Your issue may be the first C (in CSS)
you set the BODY. that does not overrule a P (or any other) font-family if declared further into the BOX Model. That simply says to use this if nothing ELSE takes over. |
Advert | |
|
07-06-2022, 12:09 AM | #348 | |
Connoisseur
Posts: 93
Karma: 20
Join Date: Aug 2011
Device: Kindle Paperwhite/IpadMini
|
Quote:
I'm sure my ignorance. In particular I would like to increase space between lines of text. I would appreciate it if someone could point me in a direction on how to implement the style and make the reader pay attention. thx, . |
|
07-06-2022, 05:34 AM | #349 |
Well trained by Cats
Posts: 30,397
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I think there is an error in that style
that should be: line-height: 1.8 not line-spacing |
07-06-2022, 01:11 PM | #350 | |
Connoisseur
Posts: 93
Karma: 20
Join Date: Aug 2011
Device: Kindle Paperwhite/IpadMini
|
Quote:
Do you know if I put CSS styles in for a book, does Calibre only use it on the single book? Or is it applied to all books I read? Thanks for your help. BTW, https://www.w3schools.com/css/default.asp Was useful for me. . |
|
Advert | |
|
07-06-2022, 01:51 PM | #351 | |
Well trained by Cats
Posts: 30,397
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I hand edit my CSS in all books (cue Frank Sinatra: My Way) and use Publisher styles (some are now mine) on my devices. |
|
07-15-2022, 02:51 AM | #352 | |
Fanatic
Posts: 520
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Quote:
|
|
07-15-2022, 03:15 PM | #353 | |
Connoisseur
Posts: 93
Karma: 20
Join Date: Aug 2011
Device: Kindle Paperwhite/IpadMini
|
Quote:
line-height: 5.0 !important; does exactly what I expect it to. On others, it seems to be ignored. Any one help with the difference. How do I get the epub reader to pay attention? thx, . |
|
07-15-2022, 03:32 PM | #354 | |
Well trained by Cats
Posts: 30,397
Karma: 58055234
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Some devices do their own thing. Period Yor problem (some books) is the Order. You set it in one place. A nested blocks style overrides it. Nesting of styles (usage) can be important. |
|
07-19-2022, 01:02 PM | #355 |
Resident Curmudgeon
Posts: 76,016
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
A line height of 5.0? That IMHO is too large.
|
07-19-2022, 02:27 PM | #356 |
Connoisseur
Posts: 93
Karma: 20
Join Date: Aug 2011
Device: Kindle Paperwhite/IpadMini
|
|
07-19-2022, 03:29 PM | #357 | |
Resident Curmudgeon
Posts: 76,016
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
body { line-height: 5.0; !important } |
|
08-19-2022, 10:40 AM | #358 |
Connoisseur
Posts: 52
Karma: 10
Join Date: Sep 2012
Device: kindle
|
I tried these css styles and the line height style worked, but margin styles did not worked.
Code:
body { line-height: 1.3; !important margin-right:100px; !important margin-left:100px; !important } |
08-19-2022, 11:37 AM | #359 |
Resident Curmudgeon
Posts: 76,016
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
08-19-2022, 12:44 PM | #360 |
Connoisseur
Posts: 52
Karma: 10
Join Date: Sep 2012
Device: kindle
|
I forget about that. Thanks.
|
|
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 |