View Single Post
Old 03-19-2010, 11:33 AM   #5
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Beware, I am just a beginner on CSS. This time I succeeded to reduce the white space between paragraphs.

The epub text is coming from a foreign source and has been converted from an odt file by calibre as an EPUB .

I opened this epub file with Sigil 0.2, I looked at an xhtml file with code view and I identified the P11 paragraph style as being the most used (why? mystery?) : see joint texte.png on the right

I then opened the css stylesheet at P11 and reduced to zero the values of margin-bottom and margin-top which were set at 1em (all the others values related to margin and padding were already at zero): see joint style.png

That was enough to do the trick.

I am not sure at all this is academic but it works. Now I have one line between paragraphs instead of three.
Attached Thumbnails
Click image for larger version

Name:	style.png
Views:	819
Size:	16.2 KB
ID:	48385   Click image for larger version

Name:	texte.png
Views:	737
Size:	13.2 KB
ID:	48386  

Last edited by roger64; 03-19-2010 at 11:45 AM. Reason: typos
roger64 is offline   Reply With Quote