05-18-2013, 01:56 PM | #1 |
Member
Posts: 14
Karma: 10
Join Date: May 2013
Device: Sony Reader PRS T1
|
Forcing paging - good or bad idea?
I am formatting a book of poems and am thinking that forcing each poem to be on a separate page would be desirable. They are mostly short enough that they will each fit on a single page of an e-reader with a 5-7 inch screen and typical font size.
I'm concerned that for someone that is using a large reader (full size tablet or laptop/desktop), that would result in a lot of white space below each poem. However, without forced page breaks, two poems on one page will result in the second being spread across two pages; that could be annoying for single-page-view devices. Any thoughts or suggestions? |
05-18-2013, 02:38 PM | #2 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I'd prefer forced pagebreaks. Even with large screens, I think short poems are better displayed one per page. (If we were talking of large stanzas of a single poem, that might be different.)
|
05-18-2013, 03:14 PM | #3 |
Member
Posts: 14
Karma: 10
Join Date: May 2013
Device: Sony Reader PRS T1
|
Thanks - I feel the same way. I've certainly seen printed books that follow this approach and don't worry about the vast tracts of white space - in fact, it's a page design feature in those cases.
BTW, I've just discovered the page-break-inside feature and that may provide an alternative. It could allow multiple poems on one page while ensuring that the last poem on the page is not broken up (assuming the page-break-inside works as advertised for the user's reader). |
05-18-2013, 03:43 PM | #4 |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Luke; IMHO you should use forced pagebreaks and center "vertically" the poems.
|
05-18-2013, 04:22 PM | #5 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Vertical centering is not so easy to do, especially if someone changes the font size. A consistent amount from the top might be most easily achievable.
One to a page has my vote, too, especially since poetry books are seldom very long. A playground to work with different indents, line spacing, etc, too. |
05-18-2013, 08:39 PM | #6 | |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Vertical centering is not so difficult as it seems. Try this code: Code:
div#container { display: table; width: 500px; height: 700px; margin: 0 auto; padding: 18px; border: 5px solid red; /* Only to see the "table" */ } div#content { display: table-cell; width: 100%; height: 100%; vertical-align: middle; font-size: 1.0em; text-align: left; /* for poetry */ padding: 0 36px; /* not neccesary, just to see the text better */ border: 5px solid black; /* Only to see the vertical align */ } The output is something like the following picture (from my K4NT): https://www.mobileread.com/forums/att...9&d=1368923758 The key is to use two "divs", one as "table" and the other as a "table-cell". After that, you can use the property "vertical-align" that makes all the work Last edited by RbnJrg; 05-18-2013 at 09:35 PM. |
|
05-19-2013, 12:08 AM | #7 | |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
|
|
05-19-2013, 02:41 AM | #8 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
That's the problem, there is no (consistent, reliable) way of referring to the screen height, so you must use a fixed vertical size, but that may break things badly. What if someone reads it in a phone with a smaller screen? Or in landscape orientation? And it doesn't work as intended in larger screens either.
|
05-19-2013, 12:16 PM | #9 |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Turtle91; It doesn't work for the old mobi format (mobi7); it works for .kf8 (.azw3). Regarding Nook, I don't have that ereader and I can't answer you; maybe any other member of this forum can give us some info about Nook. Also I didn't the test in ADE
|
05-19-2013, 12:30 PM | #10 | |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
I didn't do the try so I can give you a specific response but we have media queries in order to know those variables. For example, one could use: @media screen and (orientation: portrait) { /* Portrait styles */ } @media screen and (orientation: landscape) { /* Landscape styles */ } Or something like this: @media (max-height: 800px) and (orientation: landscape) { /* code for 6 inches screens and Landscape mode */ } Regards Rubén |
|
05-19-2013, 02:26 PM | #11 |
Member
Posts: 14
Karma: 10
Join Date: May 2013
Device: Sony Reader PRS T1
|
Wow Rubén - that's getting a bit more complex than I'd like, but I'll keep it in mind for future projects.
I'm thinking that I'll just use a % of height buffer on top of the poem (small value just so that the poem is not jammed to the top of the page while lots of white space is below and make sure that there is a page break following each. Thanks for everyone's comments - it seems that there is not much of an objection to one poem per page. |
05-19-2013, 03:22 PM | #12 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
But note that % in top/bottom margins is referred to the width, and not the height of the element, so the margin would actually be larger in landscape than in portrait orientation... at least in a compliant reader.
|
05-19-2013, 03:53 PM | #13 |
Member
Posts: 14
Karma: 10
Join Date: May 2013
Device: Sony Reader PRS T1
|
|
05-19-2013, 05:08 PM | #14 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
05-20-2013, 03:53 AM | #15 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free Book - Bad Idea (K) | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-16-2012 06:15 PM |
A good idea ? | carpetmojo | General Discussions | 16 | 02-09-2012 06:22 AM |
Here's a good idea. | mr ploppy | Writers' Corner | 17 | 12-26-2010 05:44 PM |
I have an idea... Could be a good one! =P | fallsauce | Amazon Kindle | 14 | 12-20-2010 06:01 PM |
This is a good idea. | cbarnett | Introduce Yourself | 2 | 09-05-2007 11:01 AM |