Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
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
Old 02-01-2013, 02:59 AM   #2
Aerys
Connoisseur
Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.
 
Aerys's Avatar
 
Posts: 51
Karma: 29994
Join Date: Nov 2011
Location: Manila, Philippines
Device: iPad 2 & Nexus 7
Are the extra pages blank? or just your book reaches to or past 10 pages?

There is no clean or easy way to fix the number of pages for a reflow book since it defeats the reason why it's reflowable.

If your adamant on keeping your book in the number of pages you want, you need to change it to a "fixed-layout" format.
Aerys is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mobi2pdf: open source code of convertion mobi to pdf seagullqyz Kindle Formats 1 10-07-2012 08:46 AM
Source code for converting html to mobi Thisiswhatiam Kindle Formats 10 06-04-2012 02:47 PM
Viewing the source code for converting html to mobi. Thisiswhatiam Development 3 05-23-2012 03:12 PM
HTML to epub displays munged source code haven Conversion 4 03-10-2011 10:08 PM
Let's create a source code repository for DR 800 related code? jraf iRex 3 03-11-2010 12:26 PM


All times are GMT -4. The time now is 02:40 PM.


MobileRead.com is a privately owned, operated and funded community.