Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing in Landscape

Printing (X)HTML

Printing in Landscape

by  BillyRayPreachersSon  Posted    (Edited  )
Unfortunately, not all browsers support the @page CSS syntax to force landscape printing. There are ways around this, however.

Opera, and Firefox (I believe, although I've tested neither) do support the @page syntax:

Code:
@page {
   size: landscape;
}

But for IE, hacks are needed. I found this neat article at http://web.tampabay.rr.com/bmerkey/examples/landscape-test.html which shows a way to fool IE into printing in landscape.

There is also some interesting information here about printing using CSS:

http://css-discuss.incutio.com/?page=PrintStylesheets

Dan


[link http://www.coedit.co.uk/][color #00486F]Coedit Limited[/color][/link][color #000000] - Delivering standards compliant, accessible web solutions[/color]

[tt]Dan's Page [blue]@[/blue] Code Couch
http://www.codecouch.com/dan/[/tt]
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top