View Full Version : Margin margin margin


Gray Eminence
01-10-2011, 08:14 AM
Hello,

I try to get a full page in black. Despite a good BACKGROUND:BLACK, I still have some borders in white. These borders are managed by the reader as I can put it in black by selecting NIGHT MODE.

Is there a way to get a full page in black?

Or is there a way to force that NIGHT MODE in the ePub?

Or an alternative I didn't even thought too yet ?

Thank you

Regards,
GE

Jellby
01-10-2011, 09:32 AM
Is there a way to get a full page in black?

You can specify all margins to zero (for "body" and "@page"), and hope the reader obeys them. Some readers may add their own margins regardless of what the book says. Try using named classes and "!important", those might override those reader's defaults.

CSS:
@page { margin: 0 !important }
body.main { margin: 0 !important }

XHTML:

<body class="main">
...
</body>

Or is there a way to force that NIGHT MODE in the ePub?

No, that's a reader thing.

pholy
01-10-2011, 11:17 AM
Quote:
Or is there a way to force that NIGHT MODE in the ePub?
No, that's a reader thing.

I guess, for an e-ink screen, that NIGHT MODE would be "Sleep" ? or maybe "Off" :)