05-10-2010, 05:59 PM | #1 |
Addict
Posts: 366
Karma: 510
Join Date: Apr 2008
Device: NookColor (MiRage/CM7.2 & Moon+ Reader Pro)
|
userstyle.css and epub margins
Has anyone had any luck reducing the margins on their sony reader using userstyle.css? I have been able to use my preferred font (Aller) with a russian hack that allows a user accessible userstyle.css but changing the margins doesn't seem to do anything. I understand that justification cannot be changed currently, and am wondering if the margins are the same.
If someone has been able modify the margins and have it work on their reader, could you provide your userstyle.css please. I am using a prs-300 but I think any reader hacked with accessible userstyle.css should be the same. Thanks. |
10-16-2010, 12:34 AM | #2 |
Junior Member
Posts: 4
Karma: 19
Join Date: Jul 2010
Device: Sony PRS300
|
epub margins and fonts changes for Sony reader
Some epub books have wide margins on my Sony PRS300. Using Calibre I was able to remove margins that did not seem to respond to changing the margin settings in Calibre's "page setup" menu.
Open Calibre Make a copy of the book you are altering (in case of serious problems with the conversion)
In Calibre Select book title in library
I also changed fonts with instructions I found here: http://blog.the-ebook-reader.com/201...a-sony-reader/ |
Advert | |
|
10-17-2010, 02:59 PM | #3 |
Wizard
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
You need to be careful when deleting the xpgt file, because it also controls top and bottom margins. For example, the xpgt will often determine the top margin for a new chapter--if you delete it the chapter will begin at the top of the screen, rather than half way down.
|
10-20-2010, 06:56 AM | #4 | |
Connoisseur
Posts: 77
Karma: 9324
Join Date: Feb 2010
Device: Sony PRS-650, Kindle 3
|
Quote:
margin-left:5px; margin-right:2px; margin-top:7px; margin-bottom:1px } I used this on the PRS-600, and now on the PRS-650, but you have to remove similar settings from the css file inside the epub, if there is one. |
|
10-21-2010, 09:07 PM | #5 |
Junior Member
Posts: 4
Karma: 19
Join Date: Jul 2010
Device: Sony PRS300
|
To which e-pub file would I add
@page { margin-left:5px; margin-right:2px; margin-top:7px; margin-bottom:1px } Does it matter where it is placed? |
Advert | |
|
10-22-2010, 01:25 AM | #6 |
Connoisseur
Posts: 77
Karma: 9324
Join Date: Feb 2010
Device: Sony PRS-650, Kindle 3
|
I have it in the userStyle.css file exposed my the russified firmware, on the reader, after the @font-face region.
I also set margins to zero in other elements. body { margin-left:0; margin-right:0; margin-top:0; margin-bottom:0 } @page { margin-left:5px; margin-right:2px; margin-top:7px; margin-bottom:1px } p { text-indent:32px; text-align: justify; margin-left:0; margin-right:0; margin-top:0; margin-bottom:0; word-spacing:130%; line-height:131%; font-family:"Liberation"; font-size:106%; color:black; widows:1; orphans:1 } |
10-22-2010, 07:47 PM | #7 |
Junior Member
Posts: 4
Karma: 19
Join Date: Jul 2010
Device: Sony PRS300
|
Thanks - I also have the russified firmware - love the clock!
I will try your settings. |
10-28-2010, 10:10 AM | #8 |
Junior Member
Posts: 4
Karma: 19
Join Date: Jul 2010
Device: Sony PRS300
|
Does a userstyle.css file on the reader override the userstyle.css file included in the epub file or vice versa?
|
10-28-2010, 01:51 PM | #9 | |
Connoisseur
Posts: 77
Karma: 9324
Join Date: Feb 2010
Device: Sony PRS-650, Kindle 3
|
Quote:
If the epub doesn't have a css file inside, the reader's sheet overrides a style defined inside the html/xhtml file: "...<style type="text/css">@page{margin:30px}body{font-family: ..." |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
user accessable userStyle.css please | tselling | PocketBook | 14 | 02-25-2022 05:27 PM |
Is there a way to over ride CSS Margins | gandor62 | Calibre | 0 | 09-21-2010 09:40 PM |
ePub margins : @page vs stylesheet.css | Agama | Calibre | 1 | 08-16-2010 04:37 PM |
ADE mit userstyle css | mtravellerh | PocketBook | 0 | 05-21-2010 03:40 PM |
css override code for margins? | Amalthia | Calibre | 15 | 08-11-2009 07:20 PM |