View Single Post
Old 01-28-2013, 07:20 AM   #1
JeremyBenson
Writer and Blogger!
JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.JeremyBenson ought to be getting tired of karma fortunes by now.
 
Posts: 20
Karma: 480352
Join Date: Jan 2013
Location: Halifax, NS
Device: Computer
Help With Mobi HTML Source Code

Hey guys,

I'm having a bit of trouble with MOBI source code. For some reason my books isn't working the way I'd like it to. When I load the MOBI file into Amazon's Kindle Previewer I see that there are extra pages. There are 10 pages coming out of this code, instead of the obvious amount that I would want..

looking to get one page for the cover, and one for each section. Can you help make that happen, and tell me what I'm doing wrong here?

Code:
<html>
<head>
<title>
</title>
 
<style type="text/css">
body {font-family: Arial; letter-spacing: 0; line-height: 1.3em; font-size: 1em;}
img {display: block; margin: 5px auto; text-align:center;}
hr {page-break-after:always;}
h1 {line-height:1.6em;}
.large {font-size:200%; font-weight:bold;}
.medium {font-size:130%;}
.center {text-align:center;}
</style>
</head>
 
<body>
<br><br>
<img src="Tut3/coverbitebook2.jpg" width="624" height="824" alt="" border="0">
<hr>

<h1>Introduction</h1>
<p>This is the content of our first book. This is how you would add a cover, and some page breaks. This is 
exactly what I'm going to be doing to test out the content of the new ebook and seeing if I like it 
There's going to be a little messing around to get the formatting done properly, but in the end it will
be well worth it!</p>
<hr>
 
<br><h1>Chapter 1 - The Clash Of The Titans</h1>
<p>Our hero was feeling brave after a few pints of ale at the local pub, 
and decided he didn't like the way that cocky Titan was looking at him.
That was the night that he lost his front teeth!</p>
<hr>
 
<h1>Chapter 2 - Feeling a bit depressed</h1>
<p>Our hero was feeling a bit depressed after he was carried out of the pub.
His pride was hurt but that didn't stop him from taking out his fustration
on a group of foolish orcs!</p>
<hr>
 
<h1>Chapter 3 - Feelin Like A Hero Again</h1>
<p>After smashing those stupid orcs he finally felt like a hero again!
From that day on nothing could stop him!</p>
<hr>
 
<br><br><br><br><p class='large center'>THE END</p>
</body>
</html>
Thanks for your time
JeremyBenson is offline   Reply With Quote