CSS @page cannot function

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

CSS @page cannot function

Post by valen53 »

hai everybody,

i apply the css in my page

<style type="text/css">
@page { margin: 5cm ; }
</style>

when i preview preview, it was nothing different with apply this css.

i use IE6

anybody know that?

another question is can we take out the header and footer when print the page?

thanks for reply
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

according to this DHTML documentation on MSDN, you are missing a selector


as for "hiding" areas when printed.... I already gave you information to look it up before... :? ..
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Post by valen53 »

thanks for reply

After i added selector, but still nothing to changed when print preview.

Code: Select all

<style type="text/css">
@page :first {
  margin-top: 5cm;
}
</style>
Regarding the
another question is can we take out the header and footer when print the page?
i can't find out the thing related page header and footer. maybe miss out somewhere else.

can you show a example to me? thank you very much
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I posted a second link, guess you didn't see it :P

http://msdn.microsoft.com/workshop/auth ... edia_1.asp


unless you're talking about the print system's header and footer, which we can't control.
Post Reply