471,627 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

print landscape

hello dudes

i want to print a html page in landscape format. Is there a
possebility to do it with css?
i read about a landscape task in css which workes with the opera-
browser. but it should work also with the others.

Thank you for any help! (&sorry for my english)
Gianni
Nov 22 '07 #1
2 5522
On Thu, 22 Nov 2007, Gianni wrote:
i want to print a html page in landscape format.
Select "landscape" in your printer driver's page setup.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Nov 22 '07 #2
Gianni wrote:
hello dudes

i want to print a html page in landscape format. Is there a
possebility to do it with css?
i read about a landscape task in css which workes with the opera-
browser. but it should work also with the others.

Thank you for any help! (&sorry for my english)
Gianni
<http://www.w3.org/TR/CSS3-page/#size>
@media print {
@page {
size: landscape;
}
}

Said specifier is, according to the chart on Wikipedia, the @page
attribute is only recognized by Opera 7.0+ and IE5.5+, and the size
attribute itself only on Opera. There are plans for working on it in FF,
but it will not be implemented in FF 3.0.

Of course, the most cross-browser way to do so is to change the page
orientation to `Landscape' in the print settings dialog.
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Nov 22 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by gilga123 | last post: by
reply views Thread by gilga123 | last post: by
4 posts views Thread by viki | last post: by
reply views Thread by Matthew Belk | last post: by
reply views Thread by BlueSky | last post: by
1 post views Thread by nuhura01 | last post: by
2 posts views Thread by Brad Pears | last post: by
1 post views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.