View Single Post
Old 12-24-2020, 01:59 AM   #2
slowsmile
Witchman
slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.
 
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
I've just tested this code which seems to successfully get rid of that unwanted space:

<p class="first"><span class="stand">T</span><span class="small">HE GLACIER WOUND AND TWISTED</span> between upthrust walls of naked stone.</p>

p{margin:0;text-align:justify;}
.first{text-indent:0;margin-top:2em;}
.stand{font-style:italic;font-weight:bold;line-height:0;font-size:2.5em;padding:0;}
.small{font-size:0.7777em;}


For some reason, the line-height:0 in the stand class seems to remove the unwanted excess lower space. Since line-height:0 is not allowed, the epub will always automatically reset that line-height:0 value back to it's default line-height setting - which is normally 1.2 or 120%. Hence the unwanted space magically disappears. That's just a guess on my part by the way. But this fix seems to do the job of successfully getting rid of that unwanted space below when tested on both Adobe Digital Editions and Kindle Previewer. See attachments below.
Attached Thumbnails
Click image for larger version

Name:	KP_Snip.JPG
Views:	323
Size:	34.0 KB
ID:	184237   Click image for larger version

Name:	ADE_Snip.JPG
Views:	318
Size:	79.9 KB
ID:	184239  

Last edited by slowsmile; 12-24-2020 at 11:44 PM.
slowsmile is offline   Reply With Quote