View Single Post
Old 04-06-2013, 06:02 AM   #9
gm139
Member
gm139 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2013
Device: kindle paperwhite
Thank you for your answer.
I modified my htm sample accordingly.
Here is my html code now:


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TEST</title>

<style type="text/css">

body {
	margin:0;
	padding:0;
	color:#000;
	font-family:Arial, Helvetica, sans-serif;
	font-size:11.5pt;
}

.Book {
	margin:0cm;
	margin-bottom:.0001pt;
	text-align:center;
	font-size:16.0pt;
	font-weight:bold;
	page-break-before:always;
	page-break-after:always;
}

.Chapter {
	margin-bottom:4.0cm;
	text-align:center;
	font-size:14.0pt;
	font-weight:bold;
	page-break-before:always; 
} 

p {
	margin-top: 0px;	
	margin-bottom:0pt;
	text-align:justify;
	text-indent:15.35pt;
}

</style>
</head>

<body>

<div class="Book">BOOK TITLE</div>

<div class="Chapter">CHAPTER TITLE</div>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p>

</body>

</html>
I converted it to AZW3 using calibre 9.26. But reading it using the calibre reader I still get the same problems:

1 - the book title is not bold

2 - there is not space between "chapter" and "p".

Please, If you have time try with my code. Thank you again.
gm139 is offline   Reply With Quote