View Single Post
Old 03-22-2014, 06:17 PM   #4
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,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Stefan_S View Post
Ah, my basic html knowledge has failed me..

So when manually using TAB to create indents in sigil in "Book View" won't actually transfer to the html code?
No, it won't. In fact ... if you're going to be doing much in the way of ebook creation/editing, you'd be wise to forget the TAB key on your keyboard even exists. Whether you're using Sigil, Word, or whatever.

If you have a stylesheet, you need to style the p element to add an indent. The "text-indent" property is what you're after. Your "basic" paragraph (the one you want indents for) would look something like:
Code:
p {
  text-indent: 1.2em;
}
in the stylesheet.

Then you'd want to create a css class for the paragraphs you DON'T want indented. Something like:
Code:
p.noindent {
  text-indent: 0;
}
Then in your html, you add that class attribute to the p tags where you don't want an indent.
Code:
<p class="noindent">Blah, blah, blah</p>

Last edited by DiapDealer; 03-22-2014 at 06:26 PM.
DiapDealer is offline   Reply With Quote