View Single Post
Old 04-10-2009, 10:53 AM   #5
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Have you tried the following? Not sure if it'll work but it's worth a try. I recall playing with this the past weekend, but I don't have the relevant files in front of me now so I'll have to double-check when I get home.
CSS
Code:
.story {
  page-break-before: always;
}
.chaptitle {
  margin-top: 4em;
}
XHTML
Code:
<div class="dedication">To my wife</div>
<div style="story">
<h1 class="chaptitle">Chapter 1</h1>
<p>First chapter goes here.</p>
</div>
Not at home right now, so I'll have to double-check, but iirc, I use the following for margins

I've never had luck centering text within div. Try using:
CSS
Code:
.halftitle {
  font-style: italic;
  font-size: 120%;
  text-align: center;
  margin: 4em 0 4em 0;
}
XHTML
Code:
<h1 class="halftitle">
Frankenhausen<br/>
(1525)
</h1>
ilovejedd is offline   Reply With Quote