| 
			
			 | 
		#1 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178 
				Karma: 2431850 
				Join Date: Sep 2008 
				
				
				
				Device: IPad Mini 2 Retina 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Can't get rid of bottom margin in epubs
			 
			
			
			On my PRS 505, I can't seem to get rid of a bottom margin in my epubs. At the bottom of each screen full of text there will always be at least one blank line, sometimes 2/3. This happens even when I set all margins to 0 in the style sheet and in each document in the epub. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Is this a common problem? A bug with the ADE software on the device?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 reader 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977 
				Karma: 5183568 
				Join Date: Mar 2006 
				Location: Mississippi, USA 
				
				
				Device: Kindle 3, Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			One thing to try changing is widows and orphans, see CSS Reference - widows.  I have typically seen these set to zero, see ePub to ePub - just replace CSS?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178 
				Karma: 2431850 
				Join Date: Sep 2008 
				
				
				
				Device: IPad Mini 2 Retina 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks, but it made no difference. I currently have this: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	    <style type="text/css">
		@page 
		{ 
			border-color: rgb(0, 0, 0);
			border-style: none;
			border-width: 0;
			color: rgb(0, 0, 0);
			display: none;
			font-size: 10pt; 
			font-weight: normal;
			text-align: left;
			margin: 0;
			text-indent: 0
			widows: 0;
			orphans: 0;
		}
	</style>
Code: 
	<div id="38"> <div>Line 1.</div> <div>Line 2.</div> <div>Line 3.</div> <div>Line 4.</div> <div>Line 5.</div> etc </div>  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178 
				Karma: 2431850 
				Join Date: Sep 2008 
				
				
				
				Device: IPad Mini 2 Retina 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I spoke to soon--it seems I was using the widows/orphans style in the wrong place. Now I have put it in the .body style it seems to be working. So many thanks wallcraft, and have some karma on me.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| New conversion questions: Getting rid of huge left margin Epub to Mobi | geekgeek | Calibre | 2 | 09-01-2010 12:00 AM | 
| taille des caractères en em et margin-bottom | NicolasR | Software | 6 | 06-21-2010 11:22 AM | 
| hi, i am currently getting rid of the | russellmz00 | Introduce Yourself | 6 | 05-25-2010 02:42 PM | 
| little issue converting from odt to epub (top and bottom margin) | superanima | Calibre | 1 | 02-15-2010 05:15 PM | 
| calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 07:58 AM |