Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2015, 03:46 PM   #1
bivab
Junior Member
bivab began at the beginning.
 
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;
}
The @page, margin-top/bottom, and text-align lines don't seem to have any effect on calibre's full screen mode. Am I missing something?
bivab is offline   Reply With Quote
Old 06-16-2015, 04:59 PM   #2
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
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.
Section8 is offline   Reply With Quote
Advert
Old 06-16-2015, 05:32 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 06-16-2015, 06:01 PM   #4
bivab
Junior Member
bivab began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2015
Device: calibre
Quote:
Originally Posted by Section8 View Post
IIRC, the calibre ebook view has a "page mode" it probably has to be in before those css rules work.
Thanks, I should have specified that I didn't want to use paged mode because it can't scroll.

Quote:
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.
The page margin settings in the preferences only apply to paged mode, unfortunately.

Thanks for your help.
I guess this means that there's no way to change the top/bottom margins in non-paged mode.
bivab is offline   Reply With Quote
Old 06-16-2015, 06:04 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, it's not paged, therefore, page margins dont apply.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:47 AM.


MobileRead.com is a privately owned, operated and funded community.