|
|||||||
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features. If you have any problems with the registration process or your account login, please contact us. Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience. |
| Calibre Calibre is an open-source library manager to view, convert and catalog e-books. Cross-platform (Linux, Windows and OS X) |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Enthusiast
![]()
Posts: 37
Karma: 10
Join Date: Feb 2008
Device: Bookeen Cybook Gen3, Nokia N810
|
Custom CSS Stylesheets for Calibre's Viewer
This thread is for people to post their CSS custom stylesheets for the Calibre eBook Viewer. I know that not everyone is familiar with CSS, so I hope that if anyone needs assistance in making their eBooks display properly, they will find something useful in here.
|
|
|
|
|
Enthusiast
|
|
|
|
#2 |
|
Enthusiast
![]()
Posts: 37
Karma: 10
Join Date: Feb 2008
Device: Bookeen Cybook Gen3, Nokia N810
|
My personal CSS style is extremely basic, but it does exactly what I want- proper indentation for all paragraphs, adequate spacing between lines, background color that is easy on the eyes, and centered headings. Very basic but it does its job.
body {color:rgb(0,0,0); background-color:rgb(174,174,174); text-align:justify; line-spacing:1.8; margin-top:0px; margin-bottom:4px; margin-right:50px; margin-left:50px; text-indent:3em;} h1, h2, h3, h4, h5, h6 {color:black; text-align:center; font-style:italic; font-weight:bold;} Last edited by Ralob; 08-05-2009 at 07:50 PM. |
|
|
|
|
|
#3 |
|
Opinion Artiste
![]() ![]() ![]() ![]() ![]() ![]()
Posts: 263
Karma: 654
Join Date: Mar 2009
Location: Albany, OR
Device: Dell Pocket PC, EZ Reader Pocket Pro, 1952 BiOcs
|
Thanks for sharing, Ralob! I like pretty much your whole setup, except I like a lighter, slightly off-gray background, and slightly less indent:
background-color:rgb(228,226,224); text-indent:2em; |
|
|
|
|
|
#4 |
|
Enthusiast
![]()
Posts: 31
Karma: 10
Join Date: Jul 2009
Device: Sony PRS 505
|
Do I put this in the extra css box for code in the Look and Feel area???
|
|
|
|
|
|
#5 |
|
Opinion Artiste
![]() ![]() ![]() ![]() ![]() ![]()
Posts: 263
Karma: 654
Join Date: Mar 2009
Location: Albany, OR
Device: Dell Pocket PC, EZ Reader Pocket Pro, 1952 BiOcs
|
In the Ebook Viewer application, click on the Hammer icon (Preferences), then put the code in the "User stylesheet" edit box and click OK. Have an ebook open in the viewer for the full effect, before and after.
|
|
|
|
|
|
#6 |
|
Connoisseur
![]()
Posts: 77
Karma: 46
Join Date: May 2009
Device: Sony prs-505
|
If you're interested in CSS Styling take a quick look at
http://epubzengarden.com/?style=trad.../chapter1.html Its a very new site but could become fantastic with a bit of contribution. Hard to navigate around and took me a while to find the css preview page, I have linked to my favorite page style used on this site. |
|
|
|
|
|
#7 | |
|
Opinion Artiste
![]() ![]() ![]() ![]() ![]() ![]()
Posts: 263
Karma: 654
Join Date: Mar 2009
Location: Albany, OR
Device: Dell Pocket PC, EZ Reader Pocket Pro, 1952 BiOcs
|
Quote:
body { color: rgb(255,255,255); background-color:rgb(0,0,255); text-align:justify; line-spacing:1.8; margin-top:0px; margin-bottom:4px; margin-right:50px; margin-left:50px; text-indent:2em; } h1, h2, h3, h4, h5, h6 { color:white; text-align:center; font-style:italic; font-weight:bold; } |
|
|
|
|
|
|
#8 |
|
Enthusiast
![]()
Posts: 37
Karma: 10
Join Date: Feb 2008
Device: Bookeen Cybook Gen3, Nokia N810
|
Oops! Thanks
![]() Fixed.
Last edited by Ralob; 08-05-2009 at 07:51 PM. |
|
|
|
|
|
#9 |
|
book creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 8,266
Karma: 30677
Join Date: Oct 2008
Location: Luxembourg
Device: PocketBook 360°, Cool-er, Ipod Touch
|
A propos margins: Please be advised that, if you use your CSS in ePubs for the ADEPT engine, the default page numbers will flow in the text body.
__________________
PR and Sales Pocketbook Deutsches MobileRead Forum rocks! MM-Klub: PB360° owners unite! |
|
|
|
|
|
#10 | |
|
Enthusiast
![]()
Posts: 37
Karma: 10
Join Date: Feb 2008
Device: Bookeen Cybook Gen3, Nokia N810
|
Quote:
|
|
|
|
|
|
|
#11 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]()
Posts: 296
Karma: 622
Join Date: Dec 2009
Device: kindle
|
|
|
|
|
|
|
#12 |
|
Member
![]()
Posts: 17
Karma: 14
Join Date: Aug 2009
Device: ipad
|
Hi,
Anyone having issues in getting the CSS to apply in the epub viewer? I'm using 0.6.31 and reading a variety of epubs from feedbooks, I've applied the CSS examples in this thread and clicked ok but the display never changes. Sorry if I'm missing something blatantly obvious
|
|
|
|
|
|
#13 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 2,659
Karma: 27292
Join Date: Jan 2008
Location: Sunny Spain
Device: Cybook Gen3
|
Maybe the book you are reading already defines CSS styles that override your definitions? Try adding "!important", for example:
Code:
body { color: red !important; }
|
|
|
|
|
|
#14 |
|
Member
![]()
Posts: 13
Karma: 10
Join Date: Nov 2009
Device: iPhone
|
Another good site for learning CSS and testing your trials is http://www.w3schools.com/Css/default.asp
|
|
|
|
|
|
#15 |
|
Junior Member
![]()
Posts: 2
Karma: 10
Join Date: Jan 2010
Device: iPhone
|
Hi all, this may be a stupid question but I'm having trouble getting different fonts to show up in one book? Is this even possible?
I have several Stephen King files that I'm trying to convert from HTML. King often writes about writers, and when he does, there are usually several sections of a book in "typewriter" text. I tried doing it this way: <p style="font: 9.0px 'Courier New'">CHAPTER 1</p> The font shows up in Calibre, but not on Stanza on my iPhone. Any suggestions? |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc | kovidgoyal | Calibre | 61 | 08-16-2009 02:51 PM |
| What is Calibre's 'internal' format? | rogue_ronin | Calibre | 6 | 06-07-2009 11:07 AM |
| congrats!! calibre's been lifehacked!! :) | CheriePie | Calibre | 3 | 03-16-2009 05:29 AM |
| Controlling Calibre's Splits for epubs. | brewt | Calibre | 4 | 12-31-2008 03:10 PM |
| Calibre's generated css for epub | brewt | Calibre | 7 | 12-29-2008 09:59 AM |