Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-20-2009, 03:41 AM   #1
Grauheim
Enthusiast
Grauheim doesn't litterGrauheim doesn't litterGrauheim doesn't litter
 
Posts: 41
Karma: 200
Join Date: Sep 2009
Device: Cybook Opus; HTC TyTN II
Stumped

I recently purchased an ePub book. It turns out to be formatted very strangely, with an approximately 1" margin to the left and right. On my 5" CyBook Opus, this leaves very little space for text, making the book very unpleasant to read.

I've tried editing the CSS file (called pdlmsr.css in this particular ebook), eventually in frustration changing all margin-left attributes to 0. Nothing gets rid of the massive margin.

Is there some other CSS attribute that I should be considering? I've traced through the XML and CSS, and am coming up stumped.

(I'd post the CSS file, but copyright, blah...)

Any help greatly appreciated!
Grauheim is offline   Reply With Quote
Old 10-20-2009, 05:16 AM   #2
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 31,695
Karma: 87823216
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
@page might be involved.

Don't forget that margins can be set with margin-left, etc, but also with plain margin

And there's also padding - that might be wrongly set too.


Quote:
Originally Posted by Grauheim View Post
I recently purchased an ePub book. It turns out to be formatted very strangely, with an approximately 1" margin to the left and right. On my 5" CyBook Opus, this leaves very little space for text, making the book very unpleasant to read.

I've tried editing the CSS file (called pdlmsr.css in this particular ebook), eventually in frustration changing all margin-left attributes to 0. Nothing gets rid of the massive margin.

Is there some other CSS attribute that I should be considering? I've traced through the XML and CSS, and am coming up stumped.

(I'd post the CSS file, but copyright, blah...)

Any help greatly appreciated!
pdurrant is offline   Reply With Quote
 
Enthusiast
Old 10-20-2009, 09:00 AM   #3
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
...padding-left is another possible culprit, I suppose...
frabjous is offline   Reply With Quote
Old 10-20-2009, 05:11 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,038
Karma: 18147936
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
And there can be the file that declares the page size as well that can be causing this.
JSWolf is offline   Reply With Quote
Old 10-21-2009, 02:47 AM   #5
Grauheim
Enthusiast
Grauheim doesn't litterGrauheim doesn't litterGrauheim doesn't litter
 
Posts: 41
Karma: 200
Join Date: Sep 2009
Device: Cybook Opus; HTC TyTN II
Thanks folks, JSWolf was the winner!

I'm really amazed at the poor quality of formatting this publisher was willing to charge full freight for... Grumble, grumble.
Grauheim is offline   Reply With Quote
Old 10-21-2009, 12:32 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,038
Karma: 18147936
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Grauheim View Post
Thanks folks, JSWolf was the winner!

I'm really amazed at the poor quality of formatting this publisher was willing to charge full freight for... Grumble, grumble.
That page descriptor file, I just remove as I don't want to have margins. I also remove it from all the XML files and the OPF as well as the .epub.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -4. The time now is 01:53 AM.


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