View Single Post
Old 07-04-2025, 01:49 PM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,823
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Slevin#7 View Post
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".

Last edited by RbnJrg; 07-05-2025 at 11:21 AM.
RbnJrg is offline   Reply With Quote