eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
 
   
EBookApprentice.com
Learn How To Create, Publish & Market E-Books
 
   
EBookCompiler.com
E-Book Creation Software
 
   
EBookPower.com
Add sophisticated multimedia to your E-Books
 
   
CoverFactory.com
Create E-Book covers in minutes
 
 
  EBookSubmit.com
E-Book Marketing & Promotion made easy
 
  EBookJungle.com
Search engine for E-Books
 
  EBookInterviews.com
Interviews with eBook authors
 
  EBookEnhance.com
Tools for building better eBooks
 
 
 
Archived Message:

page size for printing


 
avatoria2000 Does anyone know how to set up width of the HTML document to be more usefull for printing>
I am fresh in HTML and when I try to print my docs- this fails...because the page is cutted on the edges etc.
I just wander if its possible.
Does anyone know what to do to prepare pages of ebook good for printing?

Wojie


Posted on: 12:27 am on August 31, 2002
Alaska Wojie -

You can create two different style sheets to define your margins- say, 'regular.css', and 'print.css'.  

The 'print.css' file would have a body style with a larger "margin-right:" value:

body  { margin-right: 30pt }

Then, just add these lines to the < HEAD> section of your html page:

< LINK REL="stylesheet" MEDIA="screen" TYPE="text/css" HREF="regular.css">
< LINK REL="stylesheet" MEDIA="print"  TYPE="text/css" HREF="print.css">

 Selecting 'Print' from either the menu bar or the right-click context menu will print using your 'print.css' style sheet.

Or, you may decide to build a separate document and include it with the book, as the default print document, by adding this in the < HEAD> section:

< link rel=alternate media=print href="alternate.doc">

Both the print button and right-click menu option will print the "alternate.doc" (or .rtf file) instead of what's displayed onscreen. Your "alternate.doc" can contain a nicely formatted page, or even a short message that this book cannot be printed.

As always, remove the space after the inital '<' symbol when you paste in these meta tags.  They were added so that the tags would display on the forum.

best -

(Edited by Alaska at 7:40 pm on Nov. 2, 2002)


Posted on: 8:16 am on November 2, 2002

Go to Active Discussion Thread

Participate in Current/New Discussions

List All Archived Forums



Copyright © 2000-2015, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures