04-25-2019, 11:48 PM
|
#7
|
just an egg
Posts: 1,832
Karma: 8006102
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
Originally Posted by mariowarner
Could you make a quick walkthrough? I opened Calibre, right click on a book, edit book, then I'm confronted with a lot of different File browser tabs. Which one do I have to edit to add the code, look for the rules that could override the code and delete the line-height?
It would be really appreciated  Thanks!
|
- Look for the .css file under File Browser > Styles
- Go to the bottom of the file and add: @media amzn-kf8 {html {margin-left: -36px; margin-right: -36px; }} (You can pick whatever negative value you prefer, doesn't have to be -36px)
From here it can get tricky if you're not familiar with css due to all the variables, but you can try this as a starting point:
- Search for "margin-left:" and "margin-right:" (e.g., "margin-left: 0" or "margin-right: 1em", etc.) If the value is 0, 0%, 0em, or any variation of 0, delete the whole rule (e.g., delete "margin-left: 0;"). If the value is a number, you should probably leave it, but this is where understanding css helps.
- Search for "margin:" This can take many forms, e.g., "margin: 0" or "margin: 0 5px" or "margin: 0em 5px 0em 5px", etc. If this rule turns up, it's best to learn some css to figure out how to revise it to your liking.
- Search for @page (e.g., @page {margin: 5px;} ) and delete the whole rule
- For line-height, search for "line-height:" (e.g., line-height: 1em) and delete the whole rule
Good luck!
Last edited by odamizu; 08-27-2019 at 12:50 AM.
Reason: more detail
|
|
|