473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

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
3 6995
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: geotso | last post by:
Hi I'm trying to hide from printing a specific element of a page but I don't know how (and if) I could. Here is an example of what I'm trying to do: <h1>Hidden in print mode</h1> <p>Also...
0
by: Steven Kobes | last post by:
On this page, IE ignores the width in the media='print' stylesheet: http://thekobes.com/maxwidth/ As a result, the text appears in Print Preview with width 30em instead of auto (unless the...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
1
by: Station Media | last post by:
Hi, here my problem, i use stored procedure in ACCESS database(latest version), and i would like to use this procedure but it doesnt work, do you know why ? Procedure: PARAMETERS MyField Text...
2
by: thechaosengine | last post by:
Hi eveyone, If anyone could advise on the following I would be truly greatful: I have a fairly standard set up. An IIS 5.1 website set up with anonymous access allowed in all areas of the site...
3
by: Nick | last post by:
Hello, I am trying to edit a CSS rule with Javascript, which is for printing. Thus @media print { #footer { display: none; } } I would like to be able to access the display attribute of...
4
by: zz | last post by:
Sorry for posting this here but unfortunatly I couldn't find any appropriate newsgroup for this and since I've been active here with .net question I figured you guys might be able to help. ...
2
by: effendi | last post by:
Hi I tested the following function in Safari and it doesnt work. This is tested fine in IE. function processOutcome(){ mainDatabase=document.forms.AssessDatabase.value var...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.