It seems that ADE doesn't like a div that contains only a <br /> - it ignores it and doesn't allocate any space for it.
You could use & n b s p ; instead of the <br .>, but I'd recommend re-coding with more semantic mark-up, rather than explicitly putting a blank line between verses. Perhaps like this:
<?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'>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../styles/style001.css" type="text/css" />
<title></title>
</head>
<body>
<h3 id="heading_id_14">....and memories too.</h3>
<div class="verse">
<p>I’d rather go, where the crowds be thin,</p>
<p>no hustle, bustle, and other such din.</p>
<p>Somewhere where the sun shines,</p>
<p>and the wines</p>
<p>don’t make my head spin.</p>
</div>
<div class="verse">
<p>I’d rather go, where the air is pure,</p>
<p>water clear, and pains can cure.</p>
<p>Somewhere where my heart can rest,</p>
<p>and the best</p>
<p>of all, to be good and sure.</p>
</div>
<div class="verse">
<p>I’d rather go, where pace of life is slow,</p>
<p>no fast moving cars, nor brats in tow.</p>
<p>Somewhere not too far away</p>
<p>but far enough to avoid the fray.</p>
<p>I’d rather go and just lie low.</p>
<p>just me and you</p>
<p>and memories too.</p>
</div>
<div class="copyright">© 28 May 2009</div>
</body>
</html>
and then in the CSS have
div.verse { margin: 1em 0 }
div.verse p { text-indent: 0; margin: 0 }
Quote:
Originally Posted by GeoffC
The file Poetry.ePub here, generated with Sigil, looks good on the Sigil editor screen. The html code has been checked using Sigil and Evrsoft.
(spurious div.sgc-1 {font-size: 19px;}
div.sgc-2 {text-align: left;}
div.sgc-3 {text-align: center;} removed [makes no difference left in or removed] ).
I can only check the result in ADE, and it is appalling - can anyone see where there is a 'problem' with the code ?
The ADE import seems to be ignoring the <br /> tags - which it also does on the front page of Further Ramblings .... but these tags are inserted by Sigil - not me....
I've created and re-created this file umpteen times with no improvement and I am getting very annoyed with this ....
|