FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Header and Footer

 


kamoe_x
Anyone knows how to omit the header and footer in web printing?

Thanks.......
welshsteve
hmmm. Not sure. You could make a printer friendly version of your pages and offer a link to them for printing.
kamoe_x
What I did, i converted the data into pdf and excel.... but i heard that there is a JS for that one....

Thanks anyway....
welshsteve
kamoe_x wrote:
What I did, i converted the data into pdf and excel.... but i heard that there is a JS for that one....

Thanks anyway....


If I come across anything, I'll let you know
cavey
No use making a seperate page for printing. Instead make a css-file for printing and one for the screen:

Code:
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="printstyle.css" media="print" />


In the print css, you could hide the header and footer (and the menu too?). f.ex.:

Code:
#header, #footer {
display: none;
}


This will make the id header and footer to collapse (disappearing without leaving any empty space)

On my site, I also print the urls next to the link-name on external links. Very practical since you cannot press links on a paper :)
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.