View Single Post
Old 06-23-2014, 03:56 AM   #1
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,060
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
@page margin settings

I never really understood the functionality of margins, padding, borders in ebooks (for I don't know how the boxes are defined there - and didn't find anything in the www.).

But I have often been wondering why the margins of ebook text often were very close to the edges of my reader, so that it almost became uncomfortable to read, despite of having the "body" settings in the css at:

Code:
margin-top: 5px;
margin-bottom: 5px;
margin-left: 5px;
margin-right: 5px;
This weekend, I did some thinking about it, removed those settings, and added, on the top of the css a style:

Code:
@page 
{
margin: 5px;
}
for my reasoning was that this should create sort of "allover" box and be more proper to define the distance to the screen edges of the device itself.
Have no clue if this is formally correct, but:

Lo! It worked: Now there was enough space there.
Leonatus is offline   Reply With Quote