Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every One , I want to know how can i set the web browser compatibilty for my page print, Accutly when i give the print command, then this is working only in IE, but not in every web browser, In other web browser page format have changed,I want to Print Like as Railway reservation
If You have any Idea or code then please suggest me or paste the code,
Thanks In advance
Posted
Updated 10-Oct-11 0:51am
v4
Comments
DaveAuld 10-Oct-11 6:07am    
Please don't say it is urgent, it is not to anybody else but you, this is not a paid for service so it is just rude. You are more likely not to get a response if you say things like that.......thanks.

1 solution

One way is to define the style in css stylesheet with media code 'print'


You can include a separate css File for print or one for all media like this:

CSS
@media print {
    body { font-size: 10pt }
  }
  @media screen {
    body { font-size: 13px }
  }
  @media screen, print {
    body { line-height: 1.2 }
  }


I'm not a professional css guy but you should find enouth examples on the web.
Just search for it
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900