|  06-15-2012, 07:26 AM | #136 | |
| Well trained by Cats            Posts: 31,250 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
  The background must be embedded in your book if you wish it to work on any other device. In Sigil, the source would be (in the) "../Images /old_paper.jpg" | |
|   |   | 
|  06-15-2012, 07:33 AM | #137 | 
| US Navy, Retired            Posts: 9,897 Karma: 13806776 Join Date: Feb 2009 Location: North Carolina Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen | 
			
			Good info, but off topic.  This thread is all about calibre's viewer css not getting the css to work in a book.
		 | 
|   |   | 
| Advert | |
|  | 
|  06-15-2012, 07:38 AM | #138 | 
| Well trained by Cats            Posts: 31,250 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | |
|   |   | 
|  06-20-2012, 09:49 AM | #139 | 
| Junior Member  Posts: 1 Karma: 10 Join Date: Jul 2010 Device: ipod touch | 
			
			Hi there another vewbie to the whole css stuff. so I managed to get a nice set of stuff for both day and night reading using my little 11inch notebook, is there any way to make something that could switch between my day and night settings rather than me copying and pasting the codes every 12 hours or so... thanks | 
|   |   | 
|  06-22-2012, 05:55 PM | #140 | 
| Junior Member  Posts: 2 Karma: 10 Join Date: Feb 2012 Device: Sony PRS-505 | 
			
			I've placed this code in my viewer preferences, and what I see on all Calibre ebooks is smushed-together text, looking like black squiggles - but if copied, the text comes out OK. I've tinkered with spacing and size, and nothing seems to make any difference. Can you please help? thanks, Pen | 
|   |   | 
| Advert | |
|  | 
|  07-09-2012, 10:21 AM | #141 | 
| Enthusiast            Posts: 44 Karma: 31594 Join Date: Jul 2012 Location: Essex,UK Device: Kobo Touch | 
			
			Hi  New user and I have a problem using the viewer as it cuts the top and bottom line . Tried setting top and bottom margin as in post 1. Makes No difference. Can you tell me what I am doing wrong. Thanks Michael | 
|   |   | 
|  07-21-2012, 09:12 AM | #142 | |
| Zealot       Posts: 107 Karma: 554 Join Date: Oct 2008 Device: none | Quote: 
 | |
|   |   | 
|  08-28-2012, 06:03 AM | #143 | 
| Junior Member  Posts: 6 Karma: 10 Join Date: Aug 2012 Device: ibooks | 
				
				'Colors and backgrounds'
			 
			
			I have the calibre reader on two machines - one is vista, the other 7. preferences on vista give me a handy interface to format 'Colors and backgrounds', but preferences on 7, forces me to create a CSS? that is just plain dumb.   | 
|   |   | 
|  08-28-2012, 06:14 AM | #144 | 
| US Navy, Retired            Posts: 9,897 Karma: 13806776 Join Date: Feb 2009 Location: North Carolina Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen | 
			
			Preferences on both machines should be the same.  I've attached my Windows 7 Viewer preferences.  There are four tabs across the top, choose General.  Then click on Colors and backgrounds.  Nothing could be simpler.
		 Last edited by DoctorOhh; 08-28-2012 at 06:16 AM. | 
|   |   | 
|  08-28-2012, 09:58 AM | #145 | |
| Well trained by Cats            Posts: 31,250 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 That option has been around a while. | |
|   |   | 
|  08-28-2012, 06:58 PM | #146 | 
| US Navy, Retired            Posts: 9,897 Karma: 13806776 Join Date: Feb 2009 Location: North Carolina Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen | |
|   |   | 
|  09-26-2012, 12:10 PM | #147 | 
| Enthusiast            Posts: 41 Karma: 1005240 Join Date: Feb 2012 Device: Kindle Keyboard, iPhone | 
				
				Multi column stylesheet
			 
			
			Here is a stylesheet I use to display text in multiple columns. The columns are as tall as the viewer window and you scroll horizontally to see more columns of text. The vertical position of lines of text does not change as you scroll. On a big computer screen, I like reading this way. (I've learned that some people strongly disagree. If that's you, cool - just move along!)  Works only with "flow" mode, not paged mode. I've only tested it with a few relatively simple ebooks. It may interact unpredictably with more complex formatting. Horizontal scrolling works nicely with my trackpad, but unfortunately vertical scrolling (which jumps between chapters) seems too sensitive for my control, so I use the arrow keys. (Although that's not really specific to this stylesheet.) Code: html {
	height: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
}
body {
	height: 100%;
	margin: 0;
	padding: 0;
	/* column-width seems to be treated as a suggestion; actual width
	is varied to fit an even number of columns within screen width. */
	-webkit-column-width: 20em;
	-webkit-column-count: auto;
	-webkit-column-gap: 1.5em;
	line-height: 1.5em;
}
/* This is a fudge fix to prevent the children of the body tag from
defining margins that overlap the body height, which causes small
but annoying amounts of vertical scroll. Uses a wildcard because
I don't necessarily know how any particular page is structured. */ 
body > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}Note this stylesheet just affects the layout of the text. You can still append additional styles for specific font/color/etc effects. | 
|   |   | 
|  09-27-2012, 03:53 AM | #148 | |
| Wizard            Posts: 2,086 Karma: 14079267 Join Date: Oct 2007 Location: Almere, The Netherlands Device: Kobo Sage | Quote: 
   | |
|   |   | 
|  09-27-2012, 03:58 AM | #149 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			@anoved: You know that in paged mode you can tell the viewer to display multiple columns on the screen right? Preferences->Text Layout in paged mode Last edited by WT Sharpe; 12-30-2017 at 09:57 AM. Reason: Changed oversized graphic to thumbnail attachment. | 
|   |   | 
|  09-27-2012, 08:31 AM | #150 | |
| Enthusiast            Posts: 41 Karma: 1005240 Join Date: Feb 2012 Device: Kindle Keyboard, iPhone | 
				
				Green Eggs and Ham
			 Quote: 
 I appreciate that Calibre is flexible enough to support eccentric preferences like mine!   Last edited by anoved; 09-27-2012 at 08:40 AM. | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Custom CSS for output | deckoff | Calibre | 1 | 08-28-2010 11:55 PM | 
| ePub with custom .css on a 505 | dicknskip | Sony Reader Dev Corner | 3 | 06-09-2010 11:34 PM | 
| User stylesheets for ePub files | salty-horse | Sony Reader Dev Corner | 12 | 02-23-2010 07:44 AM | 
| ePub conversion: override existing css with a custom one | sbin | Calibre | 1 | 01-09-2010 04:03 AM | 
| Calibre's generated css for epub | brewt | Calibre | 7 | 12-29-2008 09:59 AM |