Page 1 of 1

CSS @page cannot function

Posted: Wed Aug 24, 2005 10:40 pm
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

Posted: Thu Aug 25, 2005 12:17 am
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... :? ..

Posted: Thu Aug 25, 2005 5:42 am
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

Posted: Thu Aug 25, 2005 8:27 am
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.