Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-08-2013, 11:57 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,125
Karma: 2150557
Join Date: Jan 2009
Device: Kobo Glo - Kindle PW3 (wifi)
page border

Hi

I am about to begin work on an old book which has a thin double border around all its pages. (see screenshot). I'd like to replicate this without wasting too much space if possible. Inside this border, I will of course insert images, text, well, everything.

Would some @page in the style-sheet with border attributes be OK for this task or is there a better solution?

EDIT

After looking at W3School, it seems that

body {
border-style:double
border-width:3px;
border-color: (...);
}

will do the trick. I can add margin outside and padding inside.
Attached Thumbnails
Click image for larger version

Name:	border.png
Views:	151
Size:	81.6 KB
ID:	106776  

Last edited by roger64; 06-08-2013 at 01:07 PM.
roger64 is offline   Reply With Quote
Advert
Old 06-08-2013, 01:00 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 20,666
Karma: 20350406
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
Quote:
Originally Posted by roger64 View Post
Hi

I am about to begin work on an old book which has a thin double border around all its pages. (see screenshot). I'd like to replicate this without wasting too much space if possible. Inside this border, I will of course insert images, text, well, everything.

Would some @page in the style-sheet with border attributes be OK for this task or is there a better solution?
Is the border concept even valid on any but the shortest pages (those that fit a single screen)
theducks is online now   Reply With Quote
Old 06-08-2013, 01:22 PM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,072
Karma: 9567891
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I think only margins are allowed in the @page rule, but who knows what a reader might do with it?
Jellby is offline   Reply With Quote
Old 06-08-2013, 01:32 PM   #4
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 624
Karma: 1771606
Join Date: Nov 2011
Device: none
If you want a fascimile, and you know what size screen the book will be read on - use pdf.

Otherwise, you're missing the point of an ebook. It's about pouring text into a container. You don't get to control the size or aspect ratio. You don't even get to choose font style or size. It's not about controlling page layout, except in a few very basic ways.
exaltedwombat is offline   Reply With Quote
Old 06-08-2013, 05:05 PM   #5
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,125
Karma: 2150557
Join Date: Jan 2009
Device: Kobo Glo - Kindle PW3 (wifi)
Quote:
Originally Posted by theducks View Post
Is the border concept even valid on any but the shortest pages (those that fit a single screen)
I am not sure about the body solution above. The problem is that the double border will expand with the text. But, if I fill only a half-page (end of chapter for example), the border will divide the page in two contrary to what we have for printed books. This will not look very nice. I'd like to have the same kind of border for all the pages, or at least for the pages using the same class.

Last edited by roger64; 06-08-2013 at 05:13 PM.
roger64 is offline   Reply With Quote
Advert
Old 06-08-2013, 05:10 PM   #6
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,125
Karma: 2150557
Join Date: Jan 2009
Device: Kobo Glo - Kindle PW3 (wifi)
Quote:
Originally Posted by exaltedwombat View Post
If you want a fascimile, and you know what size screen the book will be read on - use pdf..
I wil also produce two PDF from the EPUB, a six and a 9.7 inches.
roger64 is offline   Reply With Quote
Old 06-08-2013, 05:28 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 48,553
Karma: 39003673
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by Jellby View Post
I think only margins are allowed in the @page rule, but who knows what a reader might do with it?
All @page will do is set margins and then the boarder will use those margins on the outside. So in this case, @page isn't really appropriate.
JSWolf is offline   Reply With Quote
Old 06-08-2013, 06:43 PM   #8
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 624
Karma: 1771606
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by roger64 View Post
I wil also produce two PDF from the EPUB, a six and a 9.7 inches.
Why? Having formatted it as an epub, what's the advantage of a pdf?
exaltedwombat is offline   Reply With Quote
Old 06-09-2013, 01:59 AM   #9
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,125
Karma: 2150557
Join Date: Jan 2009
Device: Kobo Glo - Kindle PW3 (wifi)
Quote:
Originally Posted by exaltedwombat View Post
Why? Having formatted it as an epub, what's the advantage of a pdf?
- To follow your advice

- Some people use still old readers (ADE 1.7 generation, iBooks) who do not display nnbsp I use consistently in my non-commercial e-books.

- Some others may struggle with the display of embedded fonts because (put here 1234 different reasons...)

A PDF edition may sometimes help, provided of course it's using a size compatible reader... It's just a plus. And 6 and 9.7 inches are just popular formats.

Last edited by roger64; 06-09-2013 at 03:31 AM.
roger64 is offline   Reply With Quote
Old 06-09-2013, 02:06 AM   #10
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,125
Karma: 2150557
Join Date: Jan 2009
Device: Kobo Glo - Kindle PW3 (wifi)
Quote:
Originally Posted by JSWolf View Post
All @page will do is set margins and then the boarder will use those margins on the outside. So in this case, @page isn't really appropriate.
Yes, I should have to make do with body borders... It does not look very convenient.
roger64 is offline   Reply With Quote
Old 06-09-2013, 02:58 AM   #11
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,072
Karma: 9567891
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by roger64 View Post
- To follow your advice

- Some people use still old readers (ADE 1.7 generation, iBooks) who do not display nnbsp I use consistently in my non-commercial e-books.

- Some others may struggle with the display of embedded fonts because (put here 1234 different reasons...)
- For printing.

- For reading when no decent ePub reader is available.

- For better typesetting, provided the PDF generator is capable of that (and Prince is).
Jellby is offline   Reply With Quote
Old 06-09-2013, 03:26 AM   #12
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,125
Karma: 2150557
Join Date: Jan 2009
Device: Kobo Glo - Kindle PW3 (wifi)
Quote:
Originally Posted by Jellby View Post
- For printing.

- For reading when no decent ePub reader is available.

- For better typesetting, provided the PDF generator is capable of that (and Prince is).
Yes, thank you

Here is the latest illustrated example (this morning).

Last edited by roger64; 06-09-2013 at 03:29 AM.
roger64 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-700 Text border margins Intri Sony Reader 2 11-17-2010 04:01 AM
Border dixieknits Ectaco jetBook 6 09-13-2010 11:02 AM
Classic Border books on Nook? jncrft Barnes & Noble NOOK 4 07-13-2010 05:12 PM
Border eBooks on Kindle? IntegrityWolf Amazon Kindle 2 05-03-2010 02:55 PM
Using a Border's gift card jv5775 General Discussions 9 04-02-2010 07:47 PM


All times are GMT -4. The time now is 03:42 PM.


MobileRead.com is a privately owned, operated and funded community.