| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 1 
				Karma: 10 
				Join Date: Jul 2020 
				
				
				
				Device: ipad 
				
				
				 | 
	
	
	
		
		
			
			 
			
			Hi all, trying to make my epub/PDF conversions look a bit nicer and have taken to using a feature I hadn't before. In conversion box, Look & feel > Expand CSS (checked) > Styling > Extra CSS. Note I'm also using search and replace (as I always have). 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Once I add the CSS, during the conversion from epub to PDF, Calibre takes the maybe 3 - 5 xhtml pages I had and splits them up, seemingly after my page break code ( Code: 
	<div style="page-break-before:always;"></div> To make the ePub evergreen we want the epub as manageable as possible... 4 longish xhtml files are better than 50...Any ideas?  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | |
| 
			
			
			
			 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 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Editing with a EPUB editor like in Calibre or Sigil makes editing 1 or 100+ files just as simple. F&R has a selector Current, All HTML, Marked IMHO Working on BIG files is slower, allows for more damage quickly KISS. Touch only what needs touching, and leave the rest alone  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			if you dont want conversion to split on page breaks use the option for it in the epub output section of the conversion dialog
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Tags | 
| conversion, css, epub to pdf | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| xhtml->epub/mobi/azw auto-embedding of all js/css/etc? | iaw4 | Conversion | 1 | 01-18-2014 10:48 PM | 
| Help: pdf to epub conversion in Calibre splits paragraphs | leday | Calibre | 13 | 09-15-2013 03:10 PM | 
| Créer des epub à partir d'une syntaxe wiki (chaîne d'édition vers PDF (LaTeX), xHTML | farvardin | Software | 1 | 04-03-2011 01:49 PM | 
| PDF-> EPUB conversion splits paragraph | marekgregor | Calibre | 1 | 01-12-2011 11:04 AM |