View Full Version : page border


roger64
06-08-2013, 12:57 PM
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.

theducks
06-08-2013, 02:00 PM
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)

Jellby
06-08-2013, 02:22 PM
I think only margins are allowed in the @page rule, but who knows what a reader might do with it?

exaltedwombat
06-08-2013, 02:32 PM
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.

roger64
06-08-2013, 06:05 PM
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.

roger64
06-08-2013, 06:10 PM
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.

JSWolf
06-08-2013, 06:28 PM
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.

exaltedwombat
06-08-2013, 07:43 PM
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?

roger64
06-09-2013, 02:59 AM
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.

roger64
06-09-2013, 03:06 AM
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.

Jellby
06-09-2013, 03:58 AM
- 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).

roger64
06-09-2013, 04:26 AM
- 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 (http://www.mobileread.com/forums/showthread.php?p=2538059#post2538059) (this morning).