06-16-2015, 03:46 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2015
Device: calibre
|
Calibre full screen mode doesn't honor User CSS?
I'm having trouble changing the look and feel of Calibre's full screen mode. The User CSS can change the font size and color, but I can't seem to change the top/bottom margins, or text justification. Right now, the text is justified and I want it to be aligned left. Also, there are no margins at the top or bottom, creating a shadow at the top. I'd like to add a margin to the top and bottom.
Here's my User CSS: Code:
@page { margin-top: 32px; margin-bottom: 32px } body { color: rgb(124,124,124); background-color:rgb(20,20,20); line-spacing:2.0; margin-top:32px !important; margin-bottom:32px !important; text-align: left !important; } |
06-16-2015, 04:59 PM | #2 |
Addict
Posts: 254
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
|
IIRC, the calibre ebook view has a "page mode" it probably has to be in before those css rules work.
|
Advert | |
|
06-16-2015, 05:32 PM | #3 |
creator of calibre
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There are dedicated settings for page margins in the viewer preferences, use those.
And CSS provides no reliable method to override settings. At a minimum you have to use !important and hope that the document you are vieweing does not use !important as well. |
06-16-2015, 06:01 PM | #4 | ||
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2015
Device: calibre
|
Quote:
Quote:
Thanks for your help. I guess this means that there's no way to change the top/bottom margins in non-paged mode. |
||
06-16-2015, 06:04 PM | #5 |
creator of calibre
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, it's not paged, therefore, page margins dont apply.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre and exiting Full Screen mode on a tablet | John41 | Calibre | 2 | 04-29-2014 01:07 AM |
Mac Version: Full Screen Mode? | ChrisNunz | Library Management | 1 | 03-29-2014 11:46 AM |
How can I enable the "absolute" full screen mode in Calibre? | Edum | Library Management | 6 | 09-02-2013 04:59 PM |
A real full screen mode | tomthepom | Library Management | 0 | 12-29-2011 03:46 PM |
Mobipocket full screen mode problem | Team7 | Reading and Management | 4 | 03-02-2009 02:13 PM |