|
|
#136 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Sony PRS-505
|
I've tinkered with spacing and size, and nothing seems to make any difference. Can you please help? thanks, Pen |
|
|
|
|
|
#137 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 41
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 |
|
|
|
|
Enthusiast
|
|
|
|
#138 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() Posts: 102
Karma: 554
Join Date: Oct 2008
Device: Nokia N73ME (MobipocketReader+QReader)
|
Quote:
|
|
|
|
|
|
|
#139 |
|
Junior Member
![]() Posts: 5
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.
|
|
|
|
|
|
#140 |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,416
Karma: 11289119
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
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.
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. Last edited by DoctorOhh; 08-28-2012 at 06:16 AM. |
|
|
|
|
|
#141 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,953
Karma: 2574555
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
That option has been around a while.
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#142 |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,416
Karma: 11289119
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
Good point, bring current both versions of calibre.
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. |
|
|
|
|
|
#143 |
|
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. |
|
|
|
|
|
#144 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 829
Karma: 1419476
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kindle DX Graphite/Kobo Aura HD
|
Quote:
|
|
|
|
|
|
|
#145 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,657
Karma: 3473290
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
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#146 | |
|
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. |
|
|
|
|
|
|
#147 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Nov 2012
Device: iPhone
|
Here's an "iBook" theme I created for my 13" Macbook Pro (1280 x 800) display:
http://pastebin.com/tUxfe8cL# Should be able to just cut 'n' paste this -- it has a base64 encoded png of a "book" as the image-background. Works well in full screen mode on my 1280x800 display -- probably won't work on other display sizes. Thanks to the base64 encoding there's a lot of css text, so it may take a minute to load into your "user stylesheet" tab (be prepared for spinning rainbow wheel). Mac users: if you want to craft your own, use following css along with the background image of your choice (put the image in /Users/<your username>/Library/Preferences/calibre/images): body {color:rgb(80,58,34); background-color:rgb(174,174,174); background-image:url("/Users/<your username>/Library/Preferences/calibre/images/<filename>.png"); background-repeat:no-repeat; background-attachment:fixed; background-position:center; text-align:justify; line-spacing:1.8; margin-top:50px; margin-bottom:50px; margin-right:50px; margin-left:50px; text-indent:3em;} h1, h2, h3, h4, h5, h6 {color:rgb(80,58,34); text-align:center; font-style:italic; font-weight:bold;} |
|
|
|
|
|
#148 | |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2012
Device: Pc
|
Quote:
Or point me how i can do this via Calibre interface, in case i am blind and I've missed it. |
|
|
|
|
|
|
#149 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2012
Device: Sony
|
Please, how to make margin-bottom and margin-top working ??
|
|
|
|
|
|
#150 |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,416
Karma: 11289119
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
Toggle the scroll icon to enter Paged mode. Now you will get a top and bottom margin that you can easily control via viewer preferences.
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |