![]() |
#1 |
Enthusiast
![]() Posts: 28
Karma: 10
Join Date: Aug 2011
Device: Paperwhite
|
Possible to change line spacing?
I've noticed the space between paragraphs is different in some of my books. I'd love to be able to tweak this for easier reading.
I'm very much a noob but I know some basics. Is there anything in the style sheet I can change to alter the size of the paragraph breaks? |
![]() |
![]() |
![]() |
#2 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,930
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Yes,
open an ebook with the issue in the Calibre editor. Select title row, right click, Edit. Double click on an HTML file, not near the start. You'll have a preview in the right window and see the HTML in the middle window. Click on the start of a paragraph in the preview. See the HTML in the middle window starting with <, it has a Class. Quote:
Scroll down to find the matching class, which is prefixed with a dot, like .calibre9 in the example, but it could be msonormal1 or anything. Then you can edit or add to the css. There is plenty of css help on here https://www.w3schools.com/CSSref/pr_dim_line-height.asp Note that if a setting is missing, then either the ereader (or App) default is used, or an enclosing scope sets it, or the user can change it if it's a GUI item. The line height should not normally be set anywhere in ebook CSS so that the User GUI linespacing will work. Also this means if using a docx from Word or LO Writer, the line spacing shouldn't be set except for maybe special cases, not at all in most styles. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 28
Karma: 10
Join Date: Aug 2011
Device: Paperwhite
|
Hey thanks for the help. You've pointed me in the direction I needed to go. Strangely enough it was the margin setting I needed to tweak. I'm not versed in the lingo but I always thought margins meant the edge of a page rather than the space between paragraphs.
Either way, problem solved. Thanks! |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,010
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
HTML is a tiny bit different. It has 4 sides.
Do try and learn the 'Box Model' concept. The Inspector in the editor will show the selected block You can do quite a bit with just Padding also |
![]() |
![]() |
![]() |
#5 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,930
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
margin-top
margin-bottom Those are used to set paragraph and heading spacings. Even for paper there are the heading and footer margins and the top and bottom margins and vertical margins for styles. Have a look at style editing in MS Word or LO Writer. Also SOME ereader apps are not case sensitive, but most ereader HW is, so don't capitalise. The padding is useful for things inside things, like a visible box or a table cell, where a margin might be less appropriate. Though there is scope, where an inner thing without a stated property inherits the outer property. This can be obvious with <div> and <span> and less obvious with <body>. Last edited by Quoth; 12-27-2020 at 10:47 AM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
5.0.1 Change line spacing? | Uncle Robin | Viewer | 4 | 09-30-2020 08:57 AM |
Change dictionary's line spacing and font | Owl_ | KOReader | 1 | 07-19-2020 05:44 AM |
How can I change the line-spacing in Neo Reader? | cicabum | Onyx Boox | 0 | 09-30-2015 08:13 AM |
How to change the line spacing of a font | IceHand | Bookeen | 29 | 03-07-2009 03:09 AM |
Change line spacing | zartemis | Amazon Kindle | 1 | 02-26-2009 03:08 PM |