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 03-24-2012, 09:24 AM   #1
markjoseph
Member
markjoseph began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2010
Location: Nanuet, NY
Device: nook kindle
Line Spacing in Sigil?

I'm trying to create blank lines in my book. For example I used three asterisks between sections and would like a blank line above and below them. The code I see is:

<p class="calibre2"><br /></p>

<p class="calibre2"></p>

<p class="calibre2"></p>

<p class="calibre4">***</p>

<p class="calibre4"><br /></p>

<p class="calibre2"></p>

In the Nook for PC and the Adobe Reader the line spaces are not there. What code will work? I'm using Sigil 5.3. Thanks, Mark

Oh, by the way, the line <p class="calibre2"></p> appears all over the place. Do I need to worry about deleting it?
markjoseph is offline   Reply With Quote
Old 03-24-2012, 09:29 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,309
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Instead of blank lines or blank paragraphs, use top and bottom margin for your asterisks. These are CSS properties, you have to learn the basics of CSS if you haven't yet.
Jellby is offline   Reply With Quote
Old 03-24-2012, 09:45 AM   #3
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 757
Karma: 3058207
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
Quote:
Originally Posted by markjoseph View Post
I'm trying to create blank lines in my book. For example I used three asterisks between sections and would like a blank line above and below them. The code I see is:

<p class="calibre2"><br /></p>

<p class="calibre2"></p>

<p class="calibre2"></p>

<p class="calibre4">***</p>

<p class="calibre4"><br /></p>

<p class="calibre2"></p>

In the Nook for PC and the Adobe Reader the line spaces are not there. What code will work? I'm using Sigil 5.3. Thanks, Mark

Oh, by the way, the line <p class="calibre2"></p> appears all over the place. Do I need to worry about deleting it?
Have a look at my ePub tutorial (see my signature). Look for the section on "scene changes."
Pablo is offline   Reply With Quote
Old 03-24-2012, 10:20 AM   #4
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: 38,457
Karma: 19135915
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Code:
<p class="center">* * *</p>
And in the CSS...

Code:
.center {
text-align: center
margin-top: 15px;
margin-bottom: 15px
}
There you go.
JSWolf is offline   Reply With Quote
Old 03-24-2012, 10:56 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,182
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Personally I would use:
Code:
.center {
text-align: center
margin-top: 1.2em;
margin-bottom: 1.2em;
}
This will adjust the blank line with the font size to keep it in proportion.
Toxaris is offline   Reply With Quote
Old 03-24-2012, 11:40 AM   #6
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 996
Karma: 1843322
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro - Retired:Kindle 3, Clie UX50, T415, ...
Quote:
Originally Posted by Toxaris View Post
Personally I would use:
Code:
.center {
text-align: center
margin-top: 1.2em;
margin-bottom: 1.2em;
}
This will adjust the blank line with the font size to keep it in proportion.
I agree with using em units, particularly since such scene breaks occur in the general flow of the text and not as "headings" at the top of a screen.

While a style name can be any string of characters, I would suggest using a more descriptive name like "scene" or "scenebreak" instead of "center" for this. That way you can use "center" for a simpler centering style without the wide top and bottom margins. It makes reading the code at a later date much easier.

My personal approach is to style the <p> with the asterisks, or more often an image, using my .heading style and then style the first <p> in the new scene using my .scene style. This allows me to omit the asterisk line when only a blank gap is desired without having to add a unique style for that book. Using the same style names in all (or most) of my books makes creation and editing much easier.

Code:
.heading {
  text-indent: 0em;
  margin-top: 1em;
  margin-bottom: 0em;
  text-align: center;
  }
.section {
  text-indent: 1em;
  margin-top: 1em;
  }
dwig is offline   Reply With Quote
Old 03-24-2012, 11:44 AM   #7
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: 38,457
Karma: 19135915
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Sory, but it actually works better with 15px then 1.2em.
JSWolf is offline   Reply With Quote
Old 03-24-2012, 11:51 AM   #8
Rob Lister
Fanatic
Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.
 
Posts: 533
Karma: 3293888
Join Date: Oct 2011
Location: Virginia
Device: Nook Simple Touch
Quote:
Originally Posted by JSWolf View Post
Sory, but it actually works better with 15px then 1.2em.
how so? if I change my font size, it wouldn't scale.

Last edited by Rob Lister; 03-24-2012 at 11:53 AM.
Rob Lister is offline   Reply With Quote
Old 03-24-2012, 11:52 AM   #9
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 716
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Quote:
Originally Posted by JSWolf View Post
Sory, but it actually works better with 15px then 1.2em.
That's personal preference.

I personally prefer 1em for this. Anything larger looks too big, but smaller doesn't look to me like there is a gap.

Last edited by ghostyjack; 03-24-2012 at 02:49 PM.
ghostyjack is offline   Reply With Quote
Old 03-24-2012, 12:30 PM   #10
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,520
Karma: 43837842
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
how so? if I change my font size, it wouldn't scale.
Jon doesn't like his spacing to scale with font-size... and he doesn't like anybody else's to do so either.

Last edited by DiapDealer; 03-24-2012 at 09:47 PM.
DiapDealer is online now   Reply With Quote
Old 03-24-2012, 08:39 PM   #11
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,235
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I like em
I also play with the font-size and font-weight for scene breaks
YMMV (john's doesn't )
theducks is offline   Reply With Quote
Old 03-24-2012, 10:28 PM   #12
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: 38,457
Karma: 19135915
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
But if you keep your section break space the same, you'll know it's a section break as it will be the same size regardless of the font size.
JSWolf is offline   Reply With Quote
Old 03-31-2012, 12:31 AM   #13
markjoseph
Member
markjoseph began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2010
Location: Nanuet, NY
Device: nook kindle
Thanks everyone! That's a great help. Now I just need to get "search/replace" going. *Warming up function*
markjoseph is offline   Reply With Quote
Reply

Tags
formatting, line spacing, sigil

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help with line spacing henrypartridge Sigil 11 01-02-2012 06:18 AM
Need help with line spacing ficbot Sigil 4 05-31-2011 02:52 PM
7.34 line spacing??? JSWolf Calibre 18 12-20-2010 12:09 AM
EPUB Line spacing Jabby Ectaco jetBook 0 08-30-2010 12:43 PM
Line spacing Ivo Kobo Reader 3 06-30-2010 01:54 PM


All times are GMT -4. The time now is 06:37 PM.


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