|
|
#1 |
|
Member
![]() Posts: 21
Karma: 10
Join Date: Dec 2010
Location: Nanuet, NY
Device: nook kindle
|
Line Spacing in Sigil?
<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? |
|
|
|
|
|
#2 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,142
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
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.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 627
Karma: 1901287
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
|
Quote:
__________________
My Quick and Dirty ePub Tutorial (version 3 covering Sigil 0.7.1 now available, in pdf and ePub format) Bridging the gap between BookDesigner and Sigil: Try HTML02HTML |
|
|
|
|
|
|
#4 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Code:
<p class="center">* * *</p> Code:
.center {
text-align: center
margin-top: 15px;
margin-bottom: 15px
}
__________________
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,106
Karma: 927511
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;
}
__________________
Creator and maintainer of the e-Book Tools Word add-in. Creator and maintainer of the Clean HTML macro for MS Word. |
|
|
|
|
|
#6 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 890
Karma: 1089705
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Kindle 3/WiFi Retired:Clie - UX50, T415, ...
|
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;
}
__________________
----- dwig |
|
|
|
|
|
|
#7 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Sory, but it actually works better with 15px then 1.2em.
__________________
|
|
|
|
|
|
#8 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 512
Karma: 3201382
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. |
|
|
|
|
|
#9 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 679
Karma: 1085478
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-600, Acer 1825PT, Galaxy Tab, PRS-T1, HTC One X, TF700T
|
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.
__________________
Get 5GB of online storage for free from SugarSync. Click here for an additional 500MB to give you 5.5GB for free. Always have your stuff when you need it with @Dropbox. 2GB account is free! Click here Currently working on updating some of my Lovecraft work after receiving some corrections Last edited by ghostyjack; 03-24-2012 at 01:49 PM. |
|
|
|
|
|
#10 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,830
Karma: 23232374
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
Quote:
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” Last edited by DiapDealer; 03-24-2012 at 08:47 PM. |
|
|
|
|
|
|
#11 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,713
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
I like em
I also play with the font-size and font-weight for scene breaks YMMV (john's doesn't )
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#12 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,219
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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.
__________________
|
|
|
|
|
|
#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 |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please help with line spacing | henrypartridge | Sigil | 11 | 01-02-2012 05:18 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 |