![]() |
#136 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,757
Karma: 59473090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#137 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,882
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.
|
![]() |
![]() |
![]() |
#138 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,757
Karma: 59473090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
#142 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 554
Join Date: Oct 2008
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#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. ![]() |
![]() |
![]() |
![]() |
#144 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,882
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. |
![]() |
![]() |
![]() |
#145 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,757
Karma: 59473090
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. |
|
![]() |
![]() |
![]() |
#146 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,882
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
|
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#148 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,069
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#149 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,957
Karma: 27109050
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. |
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |