![]() |
#16 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
I spent a long time modifying CSS, using whatever was there, just changing the odd margin or font size, etc. One day I realized I was doing the same thing over and over, so I copied CSS entries I liked into a text file...basically my very own off-line CSS file. Now I can just copy and past from that into any book to get some style I like...just replace the contents of a paragraph style, for example, and it's instantly the way you want it. Just a suggestion to make work easier!
|
![]() |
![]() |
![]() |
#17 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
The way to fix the line-height is to open the book in the Editor, double-click on the stylesheet.css file (at the left below the *.html files), and then change the lines that start with line-height to 1.2 (1.2em will work, too, but you only need 1.2).
If you don't like the font that's in the body text, find the class used for the body. Open one of the *.html files and look at the "body" line for the class (near the top of the file). Then find that class in the *.css file and remove any font-family line. You can find lots of pages on the web that will teach you about CSS codes, if you ever decide to learn the basics. |
![]() |
![]() |
![]() |
#18 | |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: justify; text-indent: 1.2em; Then I hit the Beautify button to sort the lines in the *.css file. I do a lot of other things when converting files to make changes automatically, but that's way too involved for this discussion (extra CSS, transform, remove all fonts and add my favorite font, etc). You could also install the Modify ePub plugin that will do several things for you automatically, including removing all fonts, without running the Convert module. Last edited by deback; 11-11-2019 at 01:08 PM. |
|
![]() |
![]() |
![]() |
#19 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
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:
Find the paragraph (you can use the Preview pane ), then in code view right click:Goto... That finds the first occurrence (yes, there can be more. once you learn CSS, you will determine that was not the one. Remember the first C is Cascade. later entries just modify) Now you should be able to see the code for the paragraph. Caution, if you do the right-click inside a styled Span, that is where it could go |
|
![]() |
![]() |
![]() |
#20 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
|
Quote:
And I'm like you. I want at least the same font and line spacing for all my books. |
|
![]() |
![]() |
![]() |
#21 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#22 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#23 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#24 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#25 | |
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#26 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#27 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#28 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
You can go directly to the corresponding style by holding CTRL and clicking the class name.
On calibre Editor, you can go to the style using the Live CSS pane. Also, using CTRL+CLICK will open any file referenced in the code window: images, css, html, etc. |
![]() |
![]() |
![]() |
#29 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Take an eBook not made with InDesign and edit the CSS. Now that your CSS and apply it to an eBook made with InDesign and you've totally screwed it up. So please don't say you can take a custom CSS and apply it to every book because you can't. It's WRONG and it doesn't work. When you get used to editing CSS in eBooks, most of the time it's rather easy to do. |
|
![]() |
![]() |
![]() |
#30 | |||
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does ebook-viewer (of calibre) render fonts msbm correctly and how? | SuiVu1fa | Calibre | 4 | 11-28-2018 06:03 PM |
Why publishers format ebooks differently than paper books? | greenapple | General Discussions | 117 | 01-15-2014 07:48 AM |
My ePubs render differently on Android, Apple and Aldiko | Themus | ePub | 9 | 09-26-2012 01:41 AM |
Which methods render and draw pages for viewer? | foosion | Development | 1 | 10-29-2011 03:30 PM |
Calibre E-Book Viewer and ADE render ePub TD font-size differently | Agama | Devices | 5 | 06-17-2011 02:44 AM |