View Single Post
Old 02-21-2014, 06:02 AM   #16
Anak
Guru
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Quote:
Originally Posted by EndlessWaves View Post
#1 Apart from the gap at the bottom the text does go right to the edges with a margin of 0 so as mentioned above if you're seeing otherwise it's something that the book's creator has felt necessary to set for some reason (legtimate or otherwise)
Unfortunate, this is not correct. The Kobo adds a default minimum margin that cascades the margins that are set in the book.

Code:
@page {margin:0;}
body, p {margin:0;}
or
Code:
body, p {margin-left:0;margin-right:0;}
This will not give you a left to right edge to edge text display.

create a page with these simple, minimalistic css instructions:


Code:
/* set all page margins to 0 */
@page {margin:0;}
body, p, div {
margin:0;
padding:0;
}
/* foreground color to black and background color to white */
p, div {
color: black;
background-color: white;
}
/* save the book as as .epub and/or .kepub.epub
/*
/* The black foreground area is the actual text display window
/* The white edge at the top, right, bottom and left are the
/* minimum default margins set by Kobo and which can not be
/* altered by the user or CSS properties.
/*
/* In short, Kobo readers don't use the full screen to display text.
/* That is an decision made by Kobo and Kobo is the only manufacturer
/* to my knowledge that does this.
/*
/* E.g. Kobo Touch
/* Screen size: 800 × 600
/* Kobo default minimum margin: 10px (approximately, it represents the
/* white margins around the edge of the screen.)
/* The maximum, useable available screen resolution is: 780×580.
/* But this is even to optimistic as Kobo also uses
/* a relative huge bottom margin
/* and in the case of Kobos proprietary kepub format also
/* a relative huge top margin
/*
/* Same applies to other Kobo readers, just 'scale' the
/* minimum Kobo default margin
Anak is offline   Reply With Quote