473,406 Members | 2,371 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,406 software developers and data experts.

@page not working but @media ok

Hi all,

I'm trying to use this :

<html>
<head>
<style type="text/css">
@page { margin:10cm }
</style>
</head>

<body>
Hello
</body>
</html>

but it has no effect in the print preview for IE 5.5, 6 an NS7 !
However, something like :
@media print { BODY {font-size: 25pt} }
works fine.

Could anyone tell me what's wrong ? Thanks !!
Jul 20 '05 #1
4 3424
In article <3f************************@posting.google.com> in
comp.infosystems.www.authoring.stylesheets, Buzzy
<bu*******@hotmail.com> wrote:
but it has no effect in the print preview for IE 5.5, 6 an NS7 !
However, something like :
@media print { BODY {font-size: 25pt} }
works fine.

Could anyone tell me what's wrong ? Thanks !!
I thought the explanation was "old browsers", but maybe not.

http://www.blooberry.com/indexdot/cs...key/syntax.htm
indicates that MSIE 5.5 and up and NN 4.0 and up support @page.
Or maybe not: there are color codes there with no indication what
they mean.

Then I looked again at your @page: @page { margin:10cm }

Try as I might, I don't see a selector there. _What_ is supposed to
have margins of 10cm all around?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #2
Stan Brown <th************@fastmail.fm> wrote:
In article <3f************************@posting.google.com> in
comp.infosystems.www.authoring.stylesheets, Buzzy
<bu*******@hotmail.com> wrote:
but it has no effect in the print preview for IE 5.5, 6 an NS7 !
However, something like :
@media print { BODY {font-size: 25pt} }
works fine.

Could anyone tell me what's wrong ? Thanks !!
I thought the explanation was "old browsers", but maybe not.

http://www.blooberry.com/indexdot/cs...key/syntax.htm
indicates that MSIE 5.5 and up and NN 4.0 and up support @page.


IE5.5. and Opera 4 and up. No support is indicated for NN.
Then I looked again at your @page:
@page { margin:10cm }

Try as I might, I don't see a selector there. _What_ is supposed to
have margins of 10cm all around?


The page. @page rules don't need any other selectors, without any they
apply to all the printed pages.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
Thanks guys, but, though it seems supported by MSIE 5.5+, @page is not
working for me in MSIE 6 ! And I need it ...
Does anyone can copy/paste the piece of HTML code and see if it has
any effect in the print preview w/ MSIE 6?
Thanks !!!
(10 cm is just for testing purpose).

Steve Pugh <st***@pugh.net> wrote in message news:<gv********************************@4ax.com>. ..
Stan Brown <th************@fastmail.fm> wrote:
In article <3f************************@posting.google.com> in
comp.infosystems.www.authoring.stylesheets, Buzzy
<bu*******@hotmail.com> wrote:
but it has no effect in the print preview for IE 5.5, 6 an NS7 !
However, something like :
@media print { BODY {font-size: 25pt} }
works fine.

Could anyone tell me what's wrong ? Thanks !!


I thought the explanation was "old browsers", but maybe not.

http://www.blooberry.com/indexdot/cs...key/syntax.htm
indicates that MSIE 5.5 and up and NN 4.0 and up support @page.


IE5.5. and Opera 4 and up. No support is indicated for NN.
Then I looked again at your @page:
@page { margin:10cm }

Try as I might, I don't see a selector there. _What_ is supposed to
have margins of 10cm all around?


The page. @page rules don't need any other selectors, without any they
apply to all the printed pages.

Steve

Jul 20 '05 #4

"Buzzy" <bu*******@hotmail.com> wrote in message
news:3f*************************@posting.google.co m...
Thanks guys, but, though it seems supported by MSIE 5.5+, @page is not
working for me in MSIE 6 ! And I need it ...
Does anyone can copy/paste the piece of HTML code and see if it has
any effect in the print preview w/ MSIE 6?
Thanks !!!
(10 cm is just for testing purpose).

I can't get @page to work in IE6 Win 98 either. I don't know if IE5.5 does
(the chart says it does
http://www.blooberry.com/indexdot/cs...key/syntax.htm ) but it
certainly fails to work in IE6. The only browser that it does anything in
for me is Opera 7.1. Mozilla 1.4 fails to do anything.
Anyone out there got the definitive answer to this?
thanks
David
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this...
3
by: Simon Hanmer | last post by:
Hi all, I'm working on a page at the moment - http://www.scottish-logcabin.co.uk/calendar.php It displays as wanted in IE6, nearly as wanted in NN7 and horribly in Opera 7.03 I've run the...
21
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want...
6
by: Michael Rozdoba | last post by:
Am I going nutty or did the Firefox WebDeveloper toolbar display all images referenced within a page, via Information -> View Page Information -> Media? With 0.8 &...
3
by: Jason Richmeier | last post by:
I looked for a more appropriate newsgroup for this question but I didn't see much of anything (something more specific to Windows Media Services). I have a server with Windows Media Services. ...
10
by: Pete | last post by:
I have the following code: <built-in method close of file object at 0xb7cc76e0> The file "temp.html" is created, but it doesn't look like the page at www.python.org. I'm guessing there are...
2
by: cgdev1 | last post by:
Hi Folks, I'm somewhat a newbie to .Net (2.0) and even newer to Flash. I'm trying to incorporate a flash (.swf) file into my application. The code* below works in a .htm page (added to my...
8
by: php newbie | last post by:
I have a simple php page in which I use header("Location: http://www.example.com/"); to redirect the user to another php page. The php script works on my local machine but when I upload it to...
2
by: jtime | last post by:
I recently inherited a page from a former coworker and am stuck with how to fix it. The webpage provides the user with a form that allows them to select from different criteria, and as the user...
7
by: khanishfaq82 | last post by:
This Script below works perfectly in firefox but fails to execute in Internet Explorer.Kindly copy and paste the script below to see it working.What i require is if i click 'MENU1' and it is still in...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.