![]() |
Paragraph spacing not working?
Forgive me for being a novice at this, but I'm having an issue with paragraph indentation. I'm editing an epub file in Sigil, but when I read it in Marvin 3 changing the setting for paragraph spacing does nothing. I can change everything else in Marvin 3; text size, margin size, line spacing, indentation. But when I try to raise or lower the paragraph spacing nothing happens.
Here's the HTML (I removed all but the first couple of paragraphs): Quote:
|
#1) you have no stylesheet, or Margins (top, Bottom) therefore you get whatever the render engine has for <p> tags
|
Originally, the code did have a style, but it made no difference:
Code:
<?xml version="1.0" encoding="utf-8"?> |
I believe people are wondering where classes like calibre1 and calibre1 are defined. There should be a stylesheet referred to by the XHTML. See https://www.w3schools.com/css/css_howto.asp
|
To be honest, I haven't a clue. I didn't write the code, I'm just trying to edit it so that the book reads better on my device.
|
Quote:
There are plenty of basic tutorials on the internet. I think there are even a couple on this site. See the Wiki link below. https://wiki.mobileread.com/wiki/EPub_Tutorial |
Quote:
I have a better idea now of how I can define certain margins, but what would when I don’t want any particular definition so that I can change that in my reader (Marvin 3)? |
Quote:
OTOH, I personally found Marvin even with CSS enabled was not even near the top in displaying an epub the way the publisher intended and it's epub3 support pathetic. Admittedly this was using the free nagware version where the "basic" epub3 support is close to non-existent. Claiming epub3 support and not being able to open an epub3 nav document? And yes, epub3 ebooks without a ncx file are becoming a lot more common these days. |
You need to select "Publisher's Layout" in Marvin...see the instructions I left in your post in the Marvin forum.
After doing that, Marvin still allows you to change margins, font-size, etc. Also, the others are referring to the fact that your html file is not "linked" to the css file...in Sigil simply right click (or multi-select) on the file(s) you want to link in the Book Browser section (usually on the left of the window) and select "Link Stylesheets". Without a linked stylesheet all of those class="..." tags won't reference any of the styling. It will end up looking something like this: Code:
<head> |
You might look at my style sheet at https://notjohnkdp.blogspot.com/2013...yle-sheet.html -- free for the taking; adapt at your pleasure.
It should go in the Sigil "Styles" folder, and note Dion's pointer above. In this case you'd name the file styles.css Note that I never use an absolute measurement such as points, but rather ems (and maybe percents; I don't remember). |
The <p></p> tags are not displayed because they are empty.
It might not exist that it would be the same. Write an unbreakable space inside for "validated" this. Search/Replace: <p></p> => <p> </p> |
| All times are GMT -4. The time now is 10:18 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.