Hi i was wondering if anyone knows how to format my php/html page so that it prints on a4 paper without cuttin off half the information , at the moment i am missin half a table because it is too wide??!!
Does anyone know any tutorials or any ideas how to make it print on one page?!
Thanx
formatting the page so it prints nicely
Moderator: General Moderators
A tip of usage is the http://se.php.net/manual/en/function.wordwrap.php function. It just might come in handy to you.
Edited:
Thought I could add this too: NoWrap
Using this you have yet another option to use for formating a table.
Edited:
Thought I could add this too: NoWrap
Using this you have yet another option to use for formating a table.
Last edited by JAM on Fri Aug 29, 2003 8:12 pm, edited 1 time in total.
You need two stylesheets: one for printing (we'll call it print.css) and one for browser display (say browser.css):
The order of the two lines is important: if the browser does not understand media types it uses both stylesheets. Thus, browser.css styles should override any styles defined in print.css.
Doesn't work in Netscape 4 - would need to link to a second, printer friendly page.
Code: Select all
<link rel="stylesheet" href="print.css" media="print">
<link rel="stylesheet" href="browser.css" media="screen">Doesn't work in Netscape 4 - would need to link to a second, printer friendly page.