| 
			
			 | 
		#1 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 49 
				Karma: 10 
				Join Date: Mar 2016 
				
				
				
				Device: Ipad mini 2 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Sigil superscript line spacing
			 
			
			
			HI there. very much a newbie with all CSS. see my screenshot of how my superscript looks in Kindle previewer. It's fine. only issue I have is the spacing above the line is too big and needs to be same spacing above without interfering with the superscript. how do I amend this globally? what is the exact code required to fix this AND what do I insert the code. see all screenshots. Help. David
		 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Last edited by ebookscovers; 03-31-2023 at 09:15 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 A Hairy Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,397 
				Karma: 20212733 
				Join Date: Dec 2012 
				Location: Charleston, SC today 
				
				
				Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Don’t see the image… 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Also, can you post the css you are using so we can see where the problem lies? My initial thought is that you are using line-height inappropriately, but not sure.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 49 
				Karma: 10 
				Join Date: Mar 2016 
				
				
				
				Device: Ipad mini 2 
				
				
				 | 
	
	
	
		
		
			
			 
				
				uploaded screenshots
			 
			
			
			thanks. thought I'd uploaded. see attached issue.
		 
		
	
		
		
			 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,088 
				Karma: 11502975 
				Join Date: Mar 2013 
				Location: Guben, Brandenburg, Germany 
				
				
				Device: Kobo Clara 2E, Tolino Shine 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			In french books, with Mme and Mlle frequently superscripted, I found things like this: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	sup { 
  font-variant: normal;
  line-height: 0;
}
Code: 
	.t6 {
    font-size: smaller;
    vertical-align: text-top
    }
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,088 
				Karma: 11502975 
				Join Date: Mar 2013 
				Location: Guben, Brandenburg, Germany 
				
				
				Device: Kobo Clara 2E, Tolino Shine 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I have no Kindle, but a Kobo, and don't know if general CSS-rules are applicable. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	But in my books, I use something with the line-height: 0;-rule.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I ask b/c Amazon pretty rgularly and routinely forces the line-heights to be what it wants them to be. The 1.2em-line-height for regular text is a hard-and-fast rule and no matter what you do, in the body text, it won't change to 1.2 o4 1.4 or anything else. (You can do that for small bits of text, don't get me wrong, but not the body.) And vis: superscripts and the like--the lines above and below, depending, are always shifted slightly, to make room for the (sized) fonts. The lines above move up, to make room for the superscripted text, the tallest character that might exist, in that font with that styling and the subscript does the same thing to the line below. Beieve me, we've used coding very much like yours, but...it seems to be overridden at the PW. Same reason that most users cannot make a viable Dropcap. Same exact coding. Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 49 
				Karma: 10 
				Join Date: Mar 2016 
				
				
				
				Device: Ipad mini 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			yes its kindle previewer I used to make sure all looks fine before publishing. I will give drop in the code and see if works. you are right though Amazon tend to override a lot of settings
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			By the way, why is this thread in Sigil when it's talking about Kindle eBooks? It should be in Kindle Formats forum (IMHO).
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 49 
				Karma: 10 
				Join Date: Mar 2016 
				
				
				
				Device: Ipad mini 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			still the same issue when I put in code. Kindle previewer still pushes line up above the superscript. maybe the best thing going forward is to avoid using superscripts and just write 21st as is??
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 49 
				Karma: 10 
				Join Date: Mar 2016 
				
				
				
				Device: Ipad mini 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'm using Sigil to clean up the code in ebook.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | |
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Just...either switch to bracketed entries, eg. [1], or just live with it. You really can't force a device to NOT leave enough room for the tallest or longest letter, in a font family, after all, now can you? :-) Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| CSS line height vs Kobo line spacing slider? | bongoman | Kobo Reader | 2 | 07-12-2020 02:25 PM | 
| Line Spacing | Francois Driesen | Calibre | 2 | 08-22-2014 03:21 PM | 
| Line breaking before superscript | rhino79 | Sigil | 6 | 05-13-2013 03:20 PM | 
| Line Spacing in Sigil? | markjoseph | Sigil | 12 | 03-31-2012 12:31 AM | 
| Line spacing | Ivo | Kobo Reader | 3 | 06-30-2010 01:54 PM |