View Single Post
Old 08-15-2023, 11:02 AM   #46
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,054
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jospalau View Post
The problem is that you have too much left margin. And the CSS code doesn't handle lines that warp properly.

The following code works very well for the epigraphs. The following image is from the calibre editor to show how the code looks.

Click image for larger version

Name:	Chapter03.jpg
Views:	131
Size:	171.4 KB
ID:	203165

CSS
Code:
blockquote {
  margin-top: 1em;
  margin-right: 1.5em;
  margin-bottom: 1em;
  margin-left: 1.5em;
}
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
h2 {
  text-align: center;
  text-indent: 0;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}
p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1.2em;
}
.chapterOpenerText {
  text-indent: 0;
}
.extractSource {
  text-align: right;
  text-indent: 0;
}
.extractVerse-v {
  text-indent: -1.2em;
  margin-left: 1.2em;
}
.smallCaps {
  font-size: 0.8333em;
}
HTML
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>The Crippled God</title>
<link href="9781429969475.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<h2>Chapter Three</h2>
<blockquote>
<p class="extractVerse-v"><i>Time now to go out into the cold night</i></p>
<p class="extractVerse-v">And that voice was chill enough</p>
<p class="extractVerse-v">To awaken me to stillness</p>
<p class="extractVerse-v">There were cries inviting me into the sky</p>
<p class="extractVerse-v">But the ground held me fast –</p>
<p class="extractVerse-v">Well that was long ago now</p>
<p class="extractVerse-v">Yet in this bleak morning the wings</p>
<p class="extractVerse-v">Are shadows hunched on my shoulders</p>
<p class="extractVerse-v">And the stars feel closer than ever before</p>
<p class="extractVerse-v">The time is soon, I fear, to set out in search</p>
<p class="extractVerse-v">Of that voice, and I will draw to the verge</p>
<p class="extractVerse-v"><i>Time now to go out into the cold night</i></p>
<p class="extractVerse-v">Spoken in so weary a tone</p>
<p class="extractVerse-v">I can make nothing worthy from it</p>
<p class="extractVerse-v">If dreams of flying are the last hope of freedom</p>
<p class="extractVerse-v">I will pray for wings with my last breath</p>
<p class="extractSource"><i>Cold Night</i></p>
<p class="extractSource">Beleager</p>
</blockquote>
<p class="chapterOpenerText"><span class="smallCaps">SMOKE HUNG IN THICK WREATHS IN THE CABIN. THE PORTHOLES WERE</span> all open, shutters locked back, but the air did not stir and the sweltering heat lapped exposed flesh like a fevered tongue. Clearing her throat against a pervasive itchiness in her upper chest, Felash, Fourteenth Daughter of Queen Abrastal, tilted her head back on the soft, if soiled and damp, pillow.</p>
<p>Her handmaid set about refilling the pipe bowl.</p>
<p>‘Are you certain of the date?’ Felash asked.</p>
<p>‘Yes, Highness.’</p>

Last edited by JSWolf; 08-15-2023 at 11:22 AM.
JSWolf is online now   Reply With Quote