View Single Post
Old 09-15-2010, 12:09 PM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,954
Karma: 4346919
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
A pretty basic stylesheet:

Code:
p {
  text-indent: 1em;
  margin: 0;
}

p.noindent { /* use it after chapter headings, scene breaks, etc. */
  text-indent: 0;
}

div.break { /* for scene breaks: <div class="break" /> */
  height: 3em;
  padding: 0;
  margin: 0;
}

em {
  font-style: italic;
}
em em { /* to have non-italic text inside an otherwise italic block */
  font-style: normal;
}

div.center { /* short fragments of centered text (banners, equations...) */
  margin: 1em 2em;
  text-align: center;
}

blockquote {
  margin: 1em 2em;
}

/* for poetry, use it as:
<div class="poetry">
<div class="stanza">
<div>First line</div>
<div>Second line</div>
</div>
</div> */
div.poetry {
  margin: 1em 0 1em 2em;
}
div.poetry div.stanza {
  margin: 0.5em 0;
  text-indent: 0;
  padding: 0;
}
div.poetry div {
  margin: 0;
  padding-left: 3em;
  text-indent: -3em;
  text-align: left;
}
Jellby is offline   Reply With Quote