Chapter Heading

From DPWiki
Jump to: navigation, search
DP Official Documentation - Post-Processing and Post-Processing Verification

Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  <title>Chapter Heading Example (Overriding ebookmaker’s CSS)</title>

  <style type="text/css">
<!--
p
{
  text-align: justify;
}

h2
{
  text-align: center;
  clear: both;
  font-weight: normal;
  font-size: large;
  margin: 2em auto 1em auto;
  line-height: 1.5;
}

.chapter-beginning
{
  text-align: center;
}

.upper-case
{
  text-transform: uppercase;
}

body
{
  width: 80%;
  max-width: 40em;
  margin: auto;
}

.chapter
{
  page-break-before: always;
}

h2.no-break
{
  page-break-before: avoid;
  padding-top: 0;
}
-->
  </style>
</head>

<body>

<div class="chapter">
  <img src="images/decoration.png" width="472" height="107" alt=""/>
</div>

<h2 class="no-break">CHAPTER III.<br/>
<small>MR. LONGCLUSE OPENS HIS HEART.</small></h2>

<p><span class="upper-case">The</span> old housekeeper had drawn near her window, and stood close to the pane, through which she looked out upon the star-lit night. The stars shine down over the foliage of huge old trees. Dim as shadows stand the horse and tax-cart that await Mr. Longcluse and Richard Arden, who now at length appear. The groom fixes the lamps, one of which shines full on Mr. Longcluse's peculiar face.</p>

</body>

</html>

Screenshot

Chapter heading with decoration


To comment or request edits to this page, please contact lhamilton or hdmtrad.

Return to DP Official Documentation Menu