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
CSS @page cannot function
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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...
..
as for "hiding" areas when printed.... I already gave you information to look it up before...
thanks for reply
After i added selector, but still nothing to changed when print preview.
Regarding the
can you show a example to me? thank you very much
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>i can't find out the thing related page header and footer. maybe miss out somewhere else.another question is can we take out the header and footer when print the page?
can you show a example to me? thank you very much
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
I posted a second link, guess you didn't see it 
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.
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.