09-25-2021, 06:37 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2021
Device: none
|
How to make margins lower than -0.9 ?
I want to make my text closer to the top, left , right and bottom but i can't go lower than -0.9 for margins. Is there any other way to do it ? |
09-25-2021, 10:29 AM | #2 |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Those settings mostly affect the @page calibre inserts in conversions.
(I'm not sure <0 is valid ) Learn to Edit the code. Why? Because there are as many ways margins get set as there are MR members Been doing this (fixing my books) and some still take quite a bit of detective work. The Code Inspector (in the Editor) helps track down where in the Inheritance BTW What is your Output format (you did read the note at the bottom of that screen?) |
09-25-2021, 01:11 PM | #3 |
Running with scissors
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
|
As theducks says, the only sure-fire way is to edit the code. Unfortunately you need to eyeball the html files to see what classes are used on the body tag as well as the p tag. Then fix the css files.
I take a sledge hammer approach and in the html files I globally delete the class on the body tag as well as the p tag for the body paragraphs (e.g., substitute nothing for class="calibre1"), then I add the following to the bottom of the css files. Code:
body { border: 0; margin: 0; padding: 0; width: auto; } p { margin: 0; padding: 0; text-indent: 2em; } Remember that in the html a p tag with a class has higher precedence over a naked p, regardless of the order in the css file. Last edited by hobnail; 09-25-2021 at 01:18 PM. |
09-27-2021, 10:00 PM | #4 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Add the following lines into the appropriate class in the stylesheet.css file:
margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; Edit the 0 values to be what you want, such as: 0.5em; instead of 0; |
09-28-2021, 04:10 AM | #5 |
Resident Curmudgeon
Posts: 73,894
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This is the CSS code I use when I edit eBooks.
Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } Last edited by JSWolf; 09-28-2021 at 04:13 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make the margins smaller in ePub? | Tior500 | Calibre | 23 | 08-15-2022 04:43 PM |
Hello from the Lower Mainland | pocoreader | Introduce Yourself | 6 | 05-11-2011 11:43 AM |
New Lower Pricing on the EE and PE - - had to get them both! | socman123 | enTourage Archive | 17 | 04-19-2011 05:17 AM |
How to make margins? | mollybo | Workshop | 2 | 02-12-2008 10:23 PM |