I write a page in HTML ,user can print it I want to fix page size in print page set up to (legal) that doesn't need user every time change option how I can do this.
fix page size in html
Collapse
X
-
CSS would be you best option for fixing the width of your content. You can set different settings for on-screen and printed output (and a number of other different medias).
The easiest way to do these is by using 2 separate CSS files (although there are other ways to do it) like this
[html]
<link href="standard. css" rel="stylesheet " title="Standard " type="text/css" />
<link href="print.css " rel="stylesheet " media="print" title="Standard " type="text/css" />
[/html]
In the standard CSS file you leave the page width along, in the print CSS file you set the page width like so
Code:body { width= 8.5in; }
In Windows XP
Control Panel -> Printer and Faxes -> <Printer to Access>
The from displayed printer window
Printer -> Printing Preferences...
Dispays the printing preferenecs dialog. Since these are printer manufacturer dependent I can not give you any further instructions but somewhere in the preferences you will find an option to set the prefered printer page size.Comment
-
Comment