01-24-2013, 01:04 PM | #166 | |
Groupie
Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
Yeah, with the style sheet. This is what I have:
Quote:
|
|
01-25-2013, 12:36 AM | #167 |
Guru
Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
Vortex,
Take a look at Message #147 by Cyberxaos. Based on that message, it appears that these are two separate commands that should be entered on different lines in the CSS. Hope this helps! PS: I find the use of the Book's Spine quite an interesting affect. |
Advert | |
|
01-25-2013, 01:50 PM | #168 | |
Groupie
Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
Thanks Sabardeyn, That's it. Now looks like this, (is there any way to turn off the slidey thing on the right?)
Quote:
Last edited by WT Sharpe; 12-30-2017 at 09:53 AM. Reason: Changed oversized graphic to thumbnail attachment. |
|
01-25-2013, 02:35 PM | #169 |
Guru
Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
Sorry, I'm not aware of a way to turn off the slider on the right. It may be possible, but if it is, the next avalible calibre guru will have to chime in.
|
01-26-2013, 06:13 PM | #170 |
Groupie
Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
Found the tick box to turn off the scrollbar, under Fullscreen Options.
Is it possible to specify the font in the CSS stylesheet so it over rides what's embedded in the books? |
Advert | |
|
01-26-2013, 08:01 PM | #171 |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Since the expansion of the viewer preferences many things that previously required style sheet changes can be changed in the preferences.
When the viewer is open click on the viewer preferences icon in the toolbar and change the font to anything you want. |
01-26-2013, 10:57 PM | #172 |
creator of calibre
Posts: 44,047
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
01-26-2013, 11:39 PM | #173 |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
01-30-2013, 12:58 PM | #174 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2013
Device: Kindle
|
Background colour
I tried copying and pasting this code into the Calibre stylesheet and got a completely white page with no printing on it.
Whatever I try in background-color:rgb(0,0,0); doesn't change the background colour. Changing the color changes the print color. What is going wrong? I am a complete greenhorn with regard to this programming. I am running Windows 7 on a Acer laptop. Please help. Quote:
|
|
03-04-2013, 10:55 PM | #175 | |
Connoisseur
Posts: 56
Karma: 5502
Join Date: Oct 2012
Device: none
|
Is there any way I can set the margins in terms of percentage of the window? For example, I like to read with the viewer covering about half the screen while I do something else, and my margin settings of 400px reduces the text on every line to a single word! If instead I could set the margin as a percentage, it would be greatly helpful. Here's the code, taken from some other contributor in this thread:
Quote:
|
|
03-17-2013, 08:09 PM | #176 |
Junior Member
Posts: 1
Karma: 10
Join Date: Mar 2013
Device: calibre
|
Help!! Calibre overrides my CSS stylesheet
This is a line from my css, trying to make code look good: Code:
.programlisting { font-family: "Anonymous Pro"; } And this is what is shows: Code:
font-family: monospace; .programlisting - monospace stylesheet.css:204 .programlisting - 'Anonymous Pro' user stylesheet pre, xmp, plaintext, listing - monospace user agent stylesheet body - georgia Any help appreciated. |
03-18-2013, 01:57 AM | #177 |
creator of calibre
Posts: 44,047
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's a stylesheet in your book, not one generated by calibre. You have to use !important to override the book's styles in your custom stylesheet or use filter css and do a conversion to remove the css from the book.
|
04-13-2013, 03:05 PM | #178 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Kindle Paperwhite Wi-Fi
|
Quote:
|
|
04-14-2013, 02:06 AM | #179 | |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
First you have to grab the background image from the web page (http://epubzengarden.com/images/bg1.jpg) and save it to your computer. Right click the link and select Save link as if using Firefox or Save target as if using Internet Explorer. Save this file in a location on your hard drive, it doesn't matter where but you will need to obtain the file path to this image. 1. Now open any book in calibre's viewer and then open preferences. Now go to he User style tab (see attached) and paste the following. Replace the green colored path below with your actual path on your machine to the image. Code:
body { background-image:url("file:///C:/Dropbox/Calibre Portable/Calibre Settings/resources/images/bg1.jpg") !important;
}
Red: 68 Green: 51 Blue: 0 Click OK Then click OK again. Your book in calibre viewer should have the same background and text color as the example you cited. If it doesn't then review the path you set in step 1 above, ensure all slashes are in the same direction as I indicated and that it does point to the file's exact location on your machine. 3. Now that the background and font color are set open preferences again and go to the Theming tab (see attached). Click the Save button and enter a title for this theme. Click OK then OK again. Now you have saved this theme and if you decide to experiment further you can always go back to this theme via the Load button. Last edited by DoctorOhh; 04-14-2013 at 02:08 AM. |
|
04-14-2013, 10:21 AM | #180 |
Junior Member
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Kindle Paperwhite Wi-Fi
|
Incredible. Thanks for making it so easy. I've applied them in 5secs...but it seems that I can't override text alignment setting of the file to justify even with "text-align:justify !important;" line. Do you have a solution for this, too?
I appreciate your help. |
|
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 |