Hiding header/footer on html print?


#1

Hello all,

I am using what might be a “poor mans” reporting… html -> print.

Who knows a way to hide the browser-included header and footer of the
print?

thanks.


#2

define arround your header and footer parts, and include a css
file
for print media…

and define those div’s to be hidden on the printer friendly css file.

JY


#3

On 2/10/06, Joe Y. removed_email_address@domain.invalid wrote:

thanks.
Rails mailing list

What I meant was: The browser prints page-title and Page x of y on the
“header” fo the printed page, outside of the content HTML, and prints
the
URL and Date on the printed “footer” outside of the content HTML. I’m
looking for “generic” browser instructives to hide those
browser-inserted
elements.

Any ideas?


#4

On 2/10/06, Joe Y. removed_email_address@domain.invalid wrote:

JY

href="/prntfriendly.css">

I am using what might be a “poor mans” reporting… html -> print.

looking for “generic” browser instructives to hide those browser-inserted

Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

Thanks for the PNG. At least now I can suggest this for users.
Once I use PDF I won’t have this issue.


#5

I’m pretty sure that those items are set up on the user’s end when
printing
HTML pages…look in the properties of the print dialog it should have
some
check boxes that ask to print the url of the page and page numbers, etc.

Attached is the dialog for Firefox 1.5+ print options…as far as I
know,
there is no way to programically control with HTML the print options a
user
has set for printing.

JY