| 
			
			 | 
		#1 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 877 
				Karma: 2676800 
				Join Date: Sep 2008 
				Location: Taranaki - NZ 
				
				
				Device: Kobo Aura H2O, Kobo Forma 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Small request regarding superscript css
			 
			
			
			Hi, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I have a small request regarding handling of superscript text during conversion. Would there be a possibility of adding an option to change "vertical-align: super" to "vertical-align: top" (during conversion)? It's not a biggie, if Kovid doesn't want to include such an option, or it would require a lot of work, then I am happy enough to keep changing it via the editor. Thanks, Sherman  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You can use extra css to accomplish this, assuming that vertical-align is applied to the <sup> element 
		
	
		
		
		
		
		
		
		
		
		
		
	
	sup { vertical-align: top !important; }  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 877 
				Karma: 2676800 
				Join Date: Sep 2008 
				Location: Taranaki - NZ 
				
				
				Device: Kobo Aura H2O, Kobo Forma 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Hi Kovid, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	That will work in a lot of cases, but there are some books (I just checked, I have at least one) where a <span> is used instead of <sup> (this book had the superscript in italics), so I don't think extra-css would work in this situation.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'm afraid I am not going to make a dedicated option just for this, but I might look into creating a more generic mechanism to override css based on matching css values. So you could create rules that looked like 
		
	
		
		
		
		
		
		
		
		
		
		
	
	If the css property ___ is (less than|greater than|equal to|matches) (replace it|add another property) ___ with value ___  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 877 
				Karma: 2676800 
				Join Date: Sep 2008 
				Location: Taranaki - NZ 
				
				
				Device: Kobo Aura H2O, Kobo Forma 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 877 
				Karma: 2676800 
				Join Date: Sep 2008 
				Location: Taranaki - NZ 
				
				
				Device: Kobo Aura H2O, Kobo Forma 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			So, Kovid took my little feature request and ran wild with it... 
		
	
		
		
		
		
		
		
		
		
		
		
	
	The style transform feature is AWESOME! I'm already finding ways to use it for more than just vertical-align. And it is so super easy to use as well. I am (pleasantly) surprised at how flexible the feature is. So, THANK YOU Kovid!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You're welcome  
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Request for a small improvement. | jbacelar | Editor | 2 | 10-08-2015 02:34 AM | 
| A small enhancement request for CC | HarryT | Calibre Companion | 12 | 07-09-2014 02:00 PM | 
| Two curiosities and a small request | derangedhermit | Calibre | 0 | 02-18-2011 11:59 PM | 
| Small html/css bug | twaits | Calibre | 5 | 01-12-2010 11:26 AM | 
| one small request about kindle dx | quasimodo | Amazon Kindle | 0 | 08-28-2009 08:09 AM |