07-07-2011, 04:53 PM | #1 |
Addict
Posts: 303
Karma: 1033852
Join Date: Jun 2011
Device: Sony PRS-350,Sony PRS-950,Pocketbook 360+,B&N Nook Simple Touch Reader
|
Custom CSS
Is there a way (via a plugin, or otherwise) to remove all references in the main section (not sure if it's called body or what) of an epub, to line-height, margins, or font sizing?
I ask because, I have Sony Readers and have Custom CSS installed, and, 75%of the time, it works perfectly, but, other times, it does not, and, sometimes my custom CSS line heights or font sizes, or margins, are overwritten with what the epub has in it, sometimes rendering the epub unreadable. |
07-07-2011, 06:04 PM | #2 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
There is nothing I know of to do this in an automated fashion. You can use Sigil to do this by editing the EPUB directly.
|
Advert | |
|
07-07-2011, 06:54 PM | #3 |
Addict
Posts: 303
Karma: 1033852
Join Date: Jun 2011
Device: Sony PRS-350,Sony PRS-950,Pocketbook 360+,B&N Nook Simple Touch Reader
|
I'm curious as to what type of CSS devices are using (such as the PB360 or the new Nook) where these problems are NOT showing up. You can set line spacing and font sizes, and margins on those devices which ALWAYS override any CSS in the epub itself. Clearly there is a way to do this. I'm just not sure of that way.
|
07-07-2011, 07:34 PM | #4 | |
Well trained by Cats
Posts: 29,802
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I just 'Sigil' all my books to custom 'tune' the CSS to my liking. One Size Fits NONE I reverse engineer each book (usually takes a minute or less), make CSS changes, then check my work <edit edit > |
|
07-09-2011, 03:11 PM | #5 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I guess this may be OK for some books, however, if you have a nicely formatted ePub then FBReader can turn it into something little better than a glorified text file, no centre-, right-alignment, no scene-breaks, no dropcaps... the list is long. It can display epubs but I wouldn't call it an epub reader. The AdobeViewer application works much better. All this is purely my own opinion, of course. I had been wondering whether the Nook worked in the same way as FBReader? But, as I'm in the UK, I'll probably never get to try one. |
|
Advert | |
|
07-09-2011, 08:15 PM | #6 |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
I have been using tweak epub a lot lately. Especially for the epubs that text is all centered, italic, bold italic etc.
Takes only a minute or two edit the style sheet in notepad and the results are generally what I want. Helen |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom CSS Stylesheets for Calibre's Viewer | Ralob | Viewer | 373 | 08-21-2023 03:24 PM |
Feature request : using a custom css file | Bertrand | Writer2ePub | 8 | 12-28-2019 11:46 AM |
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 |
ePub conversion: override existing css with a custom one | sbin | Calibre | 1 | 01-09-2010 04:03 AM |