Quote:
Originally Posted by Slevin#7
I wanna design for the PocketBook Reader app (iOS and Android) and keep struggling to set margins for paragraphs. Although PocketBook processes margins for div and some other tags properly, it refuses to apply my custom settings to p-tags. I've even raised precedence to almost maximum, but no satisfaction in sight...
HTML
Code:
<p>First Paragraph</p>
<p>Second Paragraph</p>
CSS
Code:
p {
margin: 3em 0;
}
I have attached an EPUB2 with simple CSS styles, applying both shorthand and single set margins. Maybe someone would be so nice to take a quick look or at least can confirm that I'm not crazy
Many thanks for any help,
Slevin
|
Yes, PocketBook has issues to set margins on p tags. If you need a special margin for a particular <p>, then employ <div> or <span> and this last one with the property "display: block". Or employ padding for those p tags who needs margins; it's not the same but, depending on the layout of your epub it could work. Also if you want to try, could use "-webkit-margin-before:3em;" and/or "-webkit-margin-after:3em".