Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-12-2012, 04:18 PM   #1
Rizphil
Junior Member
Rizphil began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: ibook
Formatting in Sigil

Greetings all.
I'm trying my hand at writing my own ebook using Sigil, however I'm having trouble formatting it the way I'd like. Specifically, I do not want any spacing between paragraphs, and after the first paragraph, I would like an indent just like you see in a paperback book. Every time I begin an new paragraph, Sigil creates a blank line and the new paragraph is once again left aligned.
I've opened other Sigil ebooks which are formatted the way I want mine to look, and cut and pasted some of the code in the code view to my book, but still no luck.

Any suggestions?


Thanks
Rizphil is offline   Reply With Quote
Old 02-12-2012, 04:25 PM   #2
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: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Brush up on CSS. You're seeing the default style for paragraphs.
DiapDealer is offline   Reply With Quote
Advert
Old 02-13-2012, 01:34 PM   #3
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by Rizphil View Post
Specifically, I do not want any spacing between paragraphs, and after the first paragraph, I would like an indent just like you see in a paperback book. Thanks
Put the following code in the <head> section of you html-file:

<style type="text/css">
/*<![CDATA[*/
p { margin: 0 0; text-indent: 1em; text-align: justify; }
/*]]>*/
</style>

Every paragraph (including the first one) will use this. It will have a small indent and there will be no space between paragraphs.

Did this get you a bit closer to the formatting you want ?
mmat1 is offline   Reply With Quote
Old 02-13-2012, 04:31 PM   #4
Keroberos
Zealot
Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.
 
Keroberos's Avatar
 
Posts: 128
Karma: 238654
Join Date: Aug 2009
Device: Kobo Mini (4GB), Nook Classic wi-fi, iPod Touch (Bluefire Reader)
A good place to check out for learning CSS is the w3school site.
Keroberos is offline   Reply With Quote
Old 02-14-2012, 02:39 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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by mmat1 View Post
Put the following code in the <head> section of you html-file:

<style type="text/css">
/*<![CDATA[*/
p { margin: 0 0; text-indent: 1em; text-align: justify; }
/*]]>*/
</style>

Every paragraph (including the first one) will use this. It will have a small indent and there will be no space between paragraphs.

Did this get you a bit closer to the formatting you want ?
Although fine in general, I would really recommend not doing this in an internal stylesheet, but rather a external. It makes formatting a lot more predictable and repeatable. It also saves size and makes it easier maintainable.
Toxaris is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil Formatting errors? OrganicJerk Sigil 5 02-16-2011 08:06 PM
Can I stop Sigil from inserting sgc formatting commands? ramjet1953 Sigil 4 11-22-2010 11:59 AM
[KOBO] Strip existing formatting to apply my own default formatting to all books digital_steve Calibre 2 08-10-2010 06:34 PM
Weird formatting issues - Sigil .epub in Calibre viewer december Sigil 9 06-18-2010 04:04 PM


All times are GMT -4. The time now is 09:56 AM.


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