Quote:
Based on the above, I'd probably agree with everyone here and just remove the top/bottom margins from everywhere in my CSS except where I specifically want some different spacing.
|
That's precisely where you should use padding or you risk having your margin space overwritten simply because someone slightly changes the all-round page margin in their ereader. It seems to vary between ereaders, altering the page margin on the Lithium Reader in Android leaves your own other special margins intact, for example, but not in PocketBook Reader. Padding sidesteps the issue. In epubs I only use margin now for page margin (0.5em), setting to zero on the p tag, and in a transitional hr tag:
Code:
hr.transition {
margin: 1.5em 40% 1.55em 40%;
border: 0;
border-bottom: 1px solid darksalmon;
}