By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,168 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,168 IT Pros & Developers. It's quick & easy.

@media print problem: setting document horizontal doesn't work

P: n/a
Dear list;
I am a css newbie, and hope you can help. I am trying to make my page
print out horizontal when user hits a print button in my page. the
print button invokes javascript print.window() function, equivalent to
selecting "print" on the browser menu. From what I understand, I
should be able to force horizontal printing, regardless of browser
default. I tried with:
<HEAD>
<style type="text/css" media=print>
{size: landscape}
</style>
</HEAD>
and

<style type=text/css >
@media print {
BODY { Size: 8.5in 11in landscape; Margin: 0.25in; }
}
</style>

both don't work, either IE or Netscape. What am I doing wrong?
Thank you in advance,
Seriosly boggled Sonya
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Sonya skrev:
both don't work, either IE or Netscape. What am I doing wrong?


Nothing, but as far as I know, there's no browser there support
landscape.
--
Knud
Jul 20 '05 #2

P: n/a
Sonya wrote:
I am trying to make my page print out horizontal when user hits a
print button in my page. the print button invokes javascript
print.window() function, equivalent to selecting "print" on the
browser menu.
Then why add the print button? Why not let visitors use the print
function in their browser's ui, the one that works on all pages, and not
just yours?
From what I understand, I should be able to force horizontal
printing, regardless of browser default.
Not hardly.

http://webtips.dan.info/force.html
<style type=text/css >
@media print {
BODY { Size: 8.5in 11in landscape; Margin: 0.25in; }
}
</style>

both don't work, either IE or Netscape.


Try Opera. It is the only browser that has made a serious attempt
at @media print styles.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3

P: n/a
Brian wrote:
Sonya wrote:
<style type=text/css >
@media print {
BODY { Size: 8.5in 11in landscape; Margin: 0.25in; }
}
</style>

both don't work, either IE or Netscape.


Try Opera. It is the only browser that has made a serious attempt at
@media print styles.


But don't use those strange paper sizes -- most of the world doesn't use
the paper you use. Just say landscape, if that's what you want.

--
Matt
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.