![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
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; Code:
@page { margin: 5px; } Have no clue if this is formally correct, but: Lo! It worked: Now there was enough space there. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,550
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Actually, you don't need the bottom margin set. There's usually space between the bottm line and the bit at the bottom used by the Reader.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,988
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Anything following the previous block can set a TOP margin to get a wanted gap |
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
@DomesticExtremis: Thank you for the hint, but there appears:
"Each box has a content area (e.g., text, an image, etc.) and optional surrounding padding, border, and margin areas." Does this mean - transposed to the use of ebook readers - that one can deliberately decide if he wants, for example, the margins of a text set by controlling the padding, border or margin box commands? Where would I have to assign the @page rule? That's what I do not understand. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,988
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Play with the values and see the results. IMHO The easy way to get a feel for the basic box model |
|
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Quote:
More here. The box model can be applied to any block element, so that you can have different margins/padding/borders for paragraphs, blockquotes and other bits. You do not have to set an @page, and your e-reader my override/ignore it anyway. |
|
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Quote:
![]() You are right: some things work, other do not. Lately, I transferred a book to the reader with the @page rule by Calibre, and the rule was ignored. By hasard, I had to delete this book, worked it up in Sigil (without changing the css), and fetched it to the reader again, and voilà: the margins had become nicer. The world is full of miracles. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Removing margin settings from epub | treadlightly | Kobo Reader | 5 | 12-07-2013 08:58 PM |
Kobo Glo losing margin settings | antonf | Kobo Reader | 1 | 02-07-2013 05:01 PM |
Changing Margin Settings to use full width of the Screen??? | JBlyth | Kobo Reader | 9 | 07-05-2010 09:54 AM |
Changing Margin Settings to use full width of the Screen | JBlyth | Kobo Reader | 0 | 07-02-2010 10:31 PM |
Quick question! margin settings? | nick_f | Sony Reader | 15 | 02-20-2009 02:15 PM |