Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-13-2017, 06:58 PM   #1
awcross
Junior Member
awcross began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2017
Device: kindle
Adding spaces after images and between paragraphs

Hi all,

Sorry if this has already been asked and answered; I wasn't able to find it!

I am trying to add spaces after images and between paragraphs. I have tried to add manually in epub view, but it doesn't translate when opening anywhere other than Sigil. I have also tried adding it in the code view, knowing theoretically that it should be:

<p><br/></p>

but when I open the .epub anywhere else (reader, ADE) the spaces using that <p><br/></p> do not show up (i.e. the text is still directly below whatever I was trying to add space between). They do show up when I just use <br/>, but then of course it fails validation...and the spaces are removed again then I add the required <p></p>. I can't remember having this problem before!

awcross is offline   Reply With Quote
Advert
Old 06-13-2017, 11:25 PM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,529
Karma: 11635512
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
Hi Awcross, welcome to MR!

First off, I wouldn't use fake spaces like that to create spacing between paragraphs and images, I would use margins and CSS stylesheets. Some devices intentionally ignore those empty paragraphs.

For example:
Code:
CSS:
div.image  {margin-top:2em; margin-bottom:2em}

HTML:
<div class="image"><img alt="" src="../Images/test.jpg" /></div>
You can do the same thing for special paragraph spacing - like section breaks or scene changes. I would NOT do this for every paragraph in the book...let the user set their own paragraph spacing with their device settings.

Code:
CSS:
p.SceneBreak {margin-top:2em; text-indent:0}

HTML:
<p>normal paragraph</p>
<p>normal paragraph</p>
<p>normal paragraph</p>
<p class="SceneBreak">First paragraph in new scene</p>
<p>normal paragraph</p>
<p>normal paragraph</p>
Cheers,
Turtle91 is offline   Reply With Quote
Old 06-14-2017, 05:22 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 50,384
Karma: 43720217
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
I would not add a full line between paragraphs. It looks awful.

I've seen some ePub use the following...

Code:
p {
margin-top: .3em
}
That give a little space, but not too much to be annoying. When you have a full line, it distracts when your eyes hit that full space.
JSWolf is offline   Reply With Quote
Old 06-14-2017, 08:02 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 82,213
Karma: 76823449
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by JSWolf View Post
I would not add a full line between paragraphs. It looks awful.

I've seen some ePub use the following...

Code:
p {
margin-top: .3em
}
That give a little space, but not too much to be annoying. When you have a full line, it distracts when your eyes hit that full space.
Yes, my preference too is for a paragraph spacing of 0.2 or 0.3em. Gives a noticeable break, but not an annoying space. At the end of the day, though, these things do come down to personal preference, so I'm not suggesting that anyone else should share my preference .
HarryT is offline   Reply With Quote
Old 06-14-2017, 11:07 AM   #5
awcross
Junior Member
awcross began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2017
Device: kindle
Thanks!! I'm going to try this today. I'm definitely not putting extra spaces between paragraphs except for some back matter info. I't more o put some space after image headings.

Will let you know how it turns out!
awcross is offline   Reply With Quote
Old 06-14-2017, 11:50 AM   #6
awcross
Junior Member
awcross began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2017
Device: kindle
All worked beautifully! Thank you so much!! <3
awcross is offline   Reply With Quote
Old 06-14-2017, 01:59 PM   #7
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,110
Karma: 480516
Join Date: Dec 2012
Device: Kindle
I prefer to put the images in their own section or file, to lessen the likelihood that image and caption will appear on different pages.

I use 0.25 em bottom margin for images, 1 em for captions (for occasions when I violate the above principle).
Notjohn is offline   Reply With Quote
Old 06-14-2017, 03:47 PM   #8
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 10,086
Karma: 59551785
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
You might like to look at Pablo's Guide to ePub creation. See https://www.mobileread.com/forums/sh....php?p=1503619
PeterT is offline   Reply With Quote
Reply

Tags
spacing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spaces between paragraphs Bigo2 Calibre 15 06-25-2014 04:37 AM
Removing spaces between paragraphs Skydog Calibre 12 02-20-2013 09:52 PM
Spaces between Paragraphs in FBReader? luqmaninbmore PocketBook 2 03-10-2010 10:09 AM
Huge Spaces Between Paragraphs diremommy Calibre 0 12-29-2009 07:30 PM
Mobi -> LRF, huge spaces between paragraphs Djehuty Calibre 3 04-22-2009 01:06 PM


All times are GMT -4. The time now is 03:09 PM.


MobileRead.com is a privately owned, operated and funded community.