| 
			
			 | 
		#1 | 
| 
			
			
			
			 frumious Bandersnatch 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,570 
				Karma: 20150435 
				Join Date: Jan 2008 
				Location: Spaniard in Sweden 
				
				
				Device: Cybook Orizon, Kobo Aura 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Unsetting properties in CSS
			 
			
			
			Hi all, 
		
	
		
		
		
		
		
		
		
		
		
		
		
			I have a feeling this can't be done, but I thought I'd ask anyway. The problem comes when trying to format drop caps and there is some punctuation before the drop cap, as in: «¡Bendito sea el poderoso Alá!» where only the B should be a real "drop cap", but the previous content should remain there, before the B. With the usual code, the drop cap is set as "float", and the punctuation has to be inside the float if it has to keep its place, but only the B has to be big, bold, with a special font or whatever, so the code is something like this: Code: 
	<p><span class="drop"><span class="predrop">«¡</span>B</span>endito sea el poderoso Alá!»
I wish I could use "font-family:default", or have a selector that targets only ".drop" but not its descendants, or inherit from the grandparent, or something else. Any ideas?  
		Last edited by Jellby; 06-02-2009 at 03:36 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			AFAIK, the user is guaranteed to have default serif, sansserif, monospace, cursive and fantasy fonts.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | ||
| 
			
			
			
			 frumious Bandersnatch 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,570 
				Karma: 20150435 
				Join Date: Jan 2008 
				Location: Spaniard in Sweden 
				
				
				Device: Cybook Orizon, Kobo Aura 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I guess I could do something like: Quote: 
	
 Code: 
	<span class="drop cap">B</span>  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Some CSS properties not transferring when converting ePub to LRF | megacoupe | Calibre | 2 | 10-15-2010 06:35 PM | 
| Adding properties to books | IzzyMad | Workshop | 3 | 10-15-2010 12:05 PM | 
| Editing filenames and properties on the Cybook | brudigia | Calibre | 5 | 05-01-2009 09:08 AM | 
| Supported HTML/CSS tags and properties | Jellby | Bookeen | 9 | 05-04-2008 05:55 PM | 
| Changing pdf properties | Puddytat purr | 2 | 02-22-2008 10:27 AM | |