03-24-2012, 08:24 AM | #1 |
Member
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? |
03-24-2012, 08:29 AM | #2 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
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.
|
Advert | |
|
03-24-2012, 08:45 AM | #3 | |
Guru
Posts: 970
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
|
Quote:
|
|
03-24-2012, 09:20 AM | #4 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Code:
<p class="center">* * *</p> Code:
.center { text-align: center margin-top: 15px; margin-bottom: 15px } |
03-24-2012, 09:56 AM | #5 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Personally I would use:
Code:
.center { text-align: center margin-top: 1.2em; margin-bottom: 1.2em; } |
Advert | |
|
03-24-2012, 10:40 AM | #6 | |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
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; } |
|
03-24-2012, 10:44 AM | #7 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Sory, but it actually works better with 15px then 1.2em.
|
03-24-2012, 10:51 AM | #8 |
Fanatic
Posts: 532
Karma: 3293888
Join Date: Oct 2011
Location: Virginia
Device: Nook Simple Touch
|
how so? if I change my font size, it wouldn't scale.
Last edited by Rob Lister; 03-24-2012 at 10:53 AM. |
03-24-2012, 10:52 AM | #9 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
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 01:49 PM. |
03-24-2012, 11:30 AM | #10 | |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 03-24-2012 at 08:47 PM. |
|
03-24-2012, 07:39 PM | #11 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I like em
I also play with the font-size and font-weight for scene breaks YMMV (john's doesn't ) |
03-24-2012, 09:28 PM | #12 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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.
|
03-30-2012, 11:31 PM | #13 |
Member
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*
|
Tags |
formatting, line spacing, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Please help with line spacing | henrypartridge | Sigil | 16 | 03-18-2016 11:33 AM |
Need help with line spacing | ficbot | Sigil | 4 | 05-31-2011 01:52 PM |
7.34 line spacing??? | JSWolf | Calibre | 18 | 12-19-2010 11:09 PM |
EPUB Line spacing | Jabby | Ectaco jetBook | 0 | 08-30-2010 11:43 AM |
Line spacing | Ivo | Kobo Reader | 3 | 06-30-2010 12:54 PM |