Jump to content

[SOLVED] logo print page


verN

Recommended Posts

hiyya, i have a script that gets the data from my database however when i click on the print command the information gets printed out but the text is too small. I have looked up and know that there is a media=print. I wanted to know how i would use this in the style sheet to print the informatioon out but in a larger text. The page that geenrates the inofrmation I am using a table so how would i specify in the table the size of the font etc.

 

Another problem is that i would like a logo to appear on the print page but this is on the actual script. When the user clicks print they see the print version of the screen as well as a logo on the top of the page.

 

HELP! how do I do this.

Link to comment
Share on other sites

Just make a new stylesheet with a larger font and make that the media print sheet.  As for the logo, it is probably a background image, some browsers will not print background images by default, but you can usually change this in the preferences.  Otherwise, insert the logo as a normal image.

Link to comment
Share on other sites

  • 2 weeks later...

hi, could someone let me know how to allow a logo to appear when the user clicks print. I am using a style sheet just for printing and when the user previews the page or when they print the page I would like the logo to appear with the contents of the page

thanks

Link to comment
Share on other sites

Modify your normal CSS file to have a div named no_print with style display:none.

Include the logo on the page inside a no_print div (it will not display)

Modify your print CSS file to set the style of no_print to display:visible

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.