Quote:
Originally Posted by ldolse
...but I suspect that you didn't actually attempt to convert the document to mobi/ePub...
(code snipped)
The new line is margin-top:0.2em;
|
Idolse, thank you for your help. Bear with me a little; although I did use html a little in the mid-1990s, I'm in effect learning it anew.
Your suspicion that I didn't actually attempt to convert the document to .mobi is incorrect; I spent a day of bloody sweat doing it over and over and over and over and over and over and over and over and over again yesterday (I've left off a few 'overs' there).
I finally got it working (well enough for a beginning - it was showing a title page with an author, a contents list, and chapters sized up more or less correctly) by pasting in this code from another document that was working (also well enough for a beginning):
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<style type="text/css">
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dd, dt, p, pre, table, th, td, tr, {margin: 0; padding: 0em; }
p
{
text-indent: 1.5em;
margin-bottom: 0em;
line-height: inherit;
}
p.chapter
{
text-indent: 1.5em;
font-weight: bold;
font-size: 2em;
page-break-before: always;
margin-top: 5em;
margin-bottom: 2em;
}
p.centered
{
text-indent: 0em;
text-align: center;
}
p.title
{
text-indent: 0em;
text-align: center;
font-weight: bold;
font-size: 4em;
page-break-before: always;
margin-top: 5em;
margin-bottom: 2em;
}
p.author
{
text-indent: 0em;
text-align: center;
font-weight: bold;
font-size: 3em;
margin-top: 0em;
margin-bottom: 2em;
}
</style>
</head>
<body>
<p class="title">Onward to Mehico</p>
<p class="author">by XX Ejico</p>
<p class="chapter">Burning questions</p>
<p>THE FOLLOWING DAY a call was put through to Seamus‘ desk. “Is that Seamus Murphy?”</p>
<p>“This is DI Jordan. Who‘s speaking?”</p>
</p></body>
As you see, this doesn't have a 'margin-top' line either, but it works when converted to a .mobi.
The first set of styles looked fine when opened in a web page, but showed the title and chapter as the same size as the rest of the text when converted to .mobi using Calibre.
Thank you for the tip about the margin-top line; I'll put that in anyway - but it doesn't seem to be the total cause of this particular problem.
Thank you for your patient help.