While converting an HTML page for Kindle, I encountered a problem with multiple CSS files. The Kindle Guide recommends setting the left and right margins to 0 for normal body text in order to prevent content from falling off the edge of the screen or overlapping other content. Additionally, body text should not have a forced alignment. Despite already having margins set to zero in the CSS and no specific text alignment specified, the converted article text ended up too close to the edges of the screen on Kindle without default margins.
I attempted to set padding between 1.2 - 1.3em for both the right and left sides, which did create some spacing. However, as I progressed through the ebook, I noticed that it began to overlap on the right edge of the pages, causing the edges of pictures and text to be clipped.
How can I modify the CSS to establish proper margins between the right and left borders of the content and the screen edges when using KindleGen for conversion?
To see a sample page, click here.