Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 09:27 PM
Buzzy
Guest
 
Posts: n/a
Default @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 !!
  #2  
Old July 20th, 2005, 09:28 PM
Stan Brown
Guest
 
Posts: n/a
Default Re: @page not working but @media ok

In article <3f389a5.0310020716.3e2fd42@posting.google.com> in
comp.infosystems.www.authoring.stylesheets, Buzzy
<buzzy_buz@hotmail.com> wrote:
[color=blue]
>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 !![/color]

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:[color=blue]
> @page { margin:10cm }[/color]
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/
  #3  
Old July 20th, 2005, 09:28 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: @page not working but @media ok

Stan Brown <the_stan_brown@fastmail.fm> wrote:
[color=blue]
>In article <3f389a5.0310020716.3e2fd42@posting.google.com> in
>comp.infosystems.www.authoring.stylesheets, Buzzy
><buzzy_buz@hotmail.com> wrote:
>[color=green]
>>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 !![/color]
>
>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.[/color]

IE5.5. and Opera 4 and up. No support is indicated for NN.
[color=blue]
>Then I looked again at your @page:[color=green]
>> @page { margin:10cm }[/color]
>Try as I might, I don't see a selector there. _What_ is supposed to
>have margins of 10cm all around?[/color]

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 <steve@pugh.net> <http://steve.pugh.net/>
  #4  
Old July 20th, 2005, 09:28 PM
Buzzy
Guest
 
Posts: n/a
Default Re: @page not working but @media ok

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 <steve@pugh.net> wrote in message news:<gvionvc487acvb6bfd6ku1l3p67bc31v9u@4ax.com>. ..[color=blue]
> Stan Brown <the_stan_brown@fastmail.fm> wrote:
>[color=green]
> >In article <3f389a5.0310020716.3e2fd42@posting.google.com> in
> >comp.infosystems.www.authoring.stylesheets, Buzzy
> ><buzzy_buz@hotmail.com> wrote:
> >[color=darkred]
> >>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 !![/color]
> >
> >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.[/color]
>
> IE5.5. and Opera 4 and up. No support is indicated for NN.
>[color=green]
> >Then I looked again at your @page:[color=darkred]
> >> @page { margin:10cm }[/color]
> >Try as I might, I don't see a selector there. _What_ is supposed to
> >have margins of 10cm all around?[/color]
>
> The page. @page rules don't need any other selectors, without any they
> apply to all the printed pages.
>
> Steve[/color]
  #5  
Old July 20th, 2005, 09:28 PM
David Graham
Guest
 
Posts: n/a
Default Re: @page not working but @media ok


"Buzzy" <buzzy_buz@hotmail.com> wrote in message
news:3f389a5.0310030059.6c14dd1c@posting.google.co m...[color=blue]
> 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).
>[/color]
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


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles