View Single Post
Old 06-23-2013, 04:00 PM   #9
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by santosha View Post
I was under the impression that heading (<hn>) tags were more difficult to style ...
Can I for example use <hn> tags to style Part- and chapter headings, and then also add elements such as text-indent:0em;, italics, and so on?
Headings are by default larger than body text, but can otherwise be styled exactly like all other (X)HTML elements. You should be able to recycle your paragraph styles.

BTW, Sigil uses the title attribute for all auto-generated TOCs. This'll allow you to automatically generate TOC entries that differ from the actual heading text. For example:

Code:
<h1 id="c1" title="1">Chapter 1<br />The Beginning</h1>
The above code'll display Chapter 1 followed by a line-break and The Beginning. However, if you generate a TOC with Sigil, only the chapter number will be added to the TOC.
Doitsu is offline   Reply With Quote