Quote:
Originally Posted by Moonbase59
Maybe it’s called differently—Pocketbooks’s translations are sometimes a bit off. My German version also has no "Author", it’s called "Default" there. Or maybe it’s not there at all, because of Apple iOS restrictions.
|
As you may see here, this is all you can configure about margins:
And whatever you set, it only affects page margins, not any p-tag or elsewhat margins.
I never set any applications to German, since this makes things just senseless complicated for development, but to explain, 'unset' means really unset and not default in the sense of author's preference.
Anyhow, I will share now my current solution which has the benefit to keep semantically correct p-tags. I will add this pseudo-element class only to selected p-tags where absolutely necessary due to styling issues otherwise. At least with the readers I've tested there seems no clash so far with the standardly applied styles. And Google also makes no troubles although height is set to 0. So here we go:
CSS
Code:
p.special-treatment:before,
p.special-treatment:after {
content: "";
display: block;
height: 0 !important;
}
p.special-treatment:before {
margin-top: 2em;
}
p.special-treatment:after {
margin-bottom: 2em;
}
We add block elements with a height of 0, apply margins and therefore stay in the same margin-scope with p which allows for collapsing.
Hallelujah everyone, just doing well asylum style...