|  01-04-2017, 02:32 PM | #1 | 
| Guru            Posts: 739 Karma: 4306712 Join Date: Jun 2006 Location: Toronto Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite | 
				
				Squashing right-justification in ebook-viewer.exe
			 
			
			Hi, everybody. My user stylesheet for calibre's ebook-viewer.exe is: Code: body {
  widows: 0;
  orphans: 0;
  text-align: left !important;
}
p {text-align: left}Many thanks! Rob Last edited by RobertJSawyer; 01-04-2017 at 11:49 PM. | 
|   |   | 
|  01-04-2017, 03:32 PM | #2 | 
| Addict            Posts: 250 Karma: 20386 Join Date: Sep 2010 Location: France Device: Bookeen Diva, Kobo Clara BW | 
			
			My first step would be to check the structure of the book. In many cases of weird formatting, it turns out that paragraphs are using div tags, or the whole chapter is one container broken by br tags, or some other insanity. You only selected for body and p; maybe adding a body * { text-align: left} would help, although juuuust a little overkill.  N. | 
|   |   | 
| Advert | |
|  | 
|  01-04-2017, 06:02 PM | #3 | 
| Wizard            Posts: 1,613 Karma: 6718541 Join Date: Dec 2004 Location: Paradise (Key West, FL) Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ... | 
			
			Also, its likely that inline styling will override the viewer's stylesheet as it always overrides internal CSS stylesheets and the <style> sections in the HTML file's <head> section.  I've seen ebooks where every paragraph tag is styled. Such books probably can't be "fixed" without editing an ePub or AZW3 version and bulk replacing all of the <p andWhateverStyle> tags with simple unstyled <p> tags. | 
|   |   | 
|  01-04-2017, 06:50 PM | #4 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  01-06-2017, 08:25 PM | #5 | |
| Fanatic            Posts: 531 Karma: 10000000 Join Date: Aug 2013 Location: Hamden, CT Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch | Quote: 
 Basically, your "body" rule is only being applied to text that is inside a "body" element but not inside of any other element with styling, which is pretty unlikely. | |
|   |   | 
| Advert | |
|  | 
|  01-06-2017, 09:03 PM | #6 | 
| Guru            Posts: 739 Karma: 4306712 Join Date: Jun 2006 Location: Toronto Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite | 
			
			Thank you, nabsltd!  That works much better! Rob | 
|   |   | 
|  01-08-2017, 06:33 PM | #7 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			Full justify is NOT right justify. So this thread is off-topic.    | 
|   |   | 
|  01-08-2017, 06:36 PM | #8 | 
| Guru            Posts: 739 Karma: 4306712 Join Date: Jun 2006 Location: Toronto Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite | 
			
			Oh, FFS. (Full? Fine, sure.) | 
|   |   | 
|  01-08-2017, 06:39 PM | #9 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | |
|   |   | 
|  01-08-2017, 07:49 PM | #10 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | |
|   |   | 
|  01-09-2017, 01:21 PM | #11 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			Yes I know. In fact, I have Quantum Night ready to be sent to my H2O next time I plug the H2O into the laptop.
		 Last edited by JSWolf; 01-09-2017 at 01:24 PM. | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Calibre ebook-viewer.exe changes EPUB file sizes? | avid01 | Calibre | 23 | 04-11-2018 04:24 AM | 
| ebook-viewer.exe | ormembar | Devices | 3 | 03-23-2016 05:19 PM | 
| Calibre2\ebook-viewer.exe | pdrapoza | Related Tools | 2 | 12-09-2014 06:40 PM | 
| (Suggestion) Move ebook-viewer.exe to the main directory next to calibre-portable.exe | avid01 | Library Management | 6 | 07-03-2014 03:55 AM | 
| Search issue with 64-bit ebook-viewer.exe | Francois_C | Calibre | 3 | 11-23-2013 08:31 AM |