View Single Post
Old 01-26-2011, 03:07 AM   #16
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by theducks View Post
Is there some stray <p>&nbsp;</p> or similar between the <body> and the first <h#> ? (or <div> or <br /> )
That just isn't right
does a stray, empty div tag pair add white space above the header, then ?

i see stuff like
Code:
<body class="calibre">
  <div class="calibre2" id="ch05">
    <div class="calibre2">
      <h2 class="halfTitlePageTitle" id="heading_id_2"><span>5</span></h2>
( where calibre 2 is defined as {block} in the stylesheet

but had not thought to remove the div bits
a) 'cos I wasn't sure what they were doing
b) 'cos then contained no text or whitespace & thus I rashly? adjudged them to be harmless ?

what also confused the issue for me, is that code like the above displays well in calibre mobi viewer yet seems to have more whitespace when it is actually on my Kindle

often, also, there is stuff in those div lines that changes each time , so each book needs its own find+ replace construct to remove them
cybmole is offline   Reply With Quote