View Single Post
Old 03-04-2024, 06:03 AM   #1489
sinanay
Junior Member
sinanay began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2024
Device: Kindle Oasis 3
Quote:
Originally Posted by jhowell View Post
On my Kindle the margins of that book are the same size as those found in Amazon purchased books in KFX format. It is working as expected.

You can change the conversion settings when producing KFX to try and make the results more to your liking by decreasing the margins using extra CSS. The Extra CSS box can be found in the conversion dialog in Styling tab of the Look & feel section. I was able to minimize the margins by adding the following:

body {margin-left: -5% !important; margin-right: -5% !important;}



Looking at the EPUB file I see that the coding of that book is unusual in that the bulk of the text is set to be a dark gray (#1a1a1a) and the background color is set to a very light gray (#fdfdfd). This background is rendered a bit darker in KFX to make the background more visible.

You can eliminate the gray background by removing "background-color: #fdfdfd;" in sytlesheet1.css of the EPUB.
Thanks a lot for the help, I'll make the changes you suggested.

Quote:
Looking that the internals of your EPUB, in my opinion the HTML/CSS coding is more appropriate for a web page than an e-book. That is going to lead to some odd behavior.
No idea, I converted it from Markdown to EPUB with Pandoc, whatever it does is pretty opaque and from what you say I understand that it must be geared towards webby HTML generation.
sinanay is offline   Reply With Quote