Copy link to clipboard
Copy link to clipboard
As suggested, use EPUB 3 (and reflowable, of course).
Looking at your styles in EXPORT TAGGING, it looks as if you have everything correct on the ID end. Sometimes there is variation between how margin and padding gets applied, but you have margin 12px on each and it should work.
It's all in the export process, I think. Use the more modern EPUB format and you should get the expected results.
Thanks NitroPress! Sorry for the late reply. I'm still struggling with this problem. Exporting to EPUB 3 did not help. You advised me to look at my paragraph style in EXPORT TAGGING. What I discovered there is that I have lines for...
margin-left : 0px margin-right : 0px margin-bottom : 71px
But I don't have a line for...
margin-top : 71px
Do you know why? How I can add it?
Going on memory here, but I don't believe html spacing compounds each other. The larger of the two measurements applies. Search for "margin collapse".
I don't think margin collapse is at play here; that's a browser function and I don't think ID would 'pre collapse' margins in the export.
The only way I know of to control margins past the defaults of EPUB export is to modify the code of the actual EPUB. There are editors, but none I really recommend (as a tool or a practice). The serious solution is to edit the CSS of the EPUB file, which is a bit of a technical hurdle but a very, very useful skill to acquire. The short form, which might not be enough detail, is:
The more sophisticated way would be to write your own CSS file and include it at export time. If your knowledge plus resources on the web don't guide you to doing that on a useful level, my recent book goes into bare-metal detail on how to do deep style surgery on EPUBs (without any specialized/limiting tools).
Or ask more questions. 🙂
Calibre and Sigil are my go-to ePub editors.
Both work fine and may be the right solution here. BookBook, you're welcome to try both; I'd steer you to Sigil.
However, a major part of my manifesto is to move e-publishing (EPUB and Kindle) away from amateurish processes and tools, all of those that have grown up primarily to serve the unskilled author-publisher market. IMVHO, the whole field creates more problems than it solves, especially now that there are more professional tools and processes for creating e-publications. Clumsy, one-author freeware has had its day in this niche.
Even I used Calibre back in the day when it was the only tool around for managing EPUB, MOBI, KZW etc. — but it's time for all of us, pro and author/pub alike, to grow up and put away childish things. 🙂