rashmi_k28 Posted May 14, 2008 Share Posted May 14, 2008 Hi, I have to print a page so I have used print image and javascript. When I click on the image and print button, Half page font size increases please tell me why it happens. <style type="text/css"> <!-- .no_print { margin: 0px; padding: 0px; } /* following only applies to printing */ @media print { body { margin: 0 auto; padding: 0; } .no_print { display: none; } } echo "<div class=\"no_print\">"; echo "<br><br><A href=\"javascript:print()\"><b><img src=\"printer-icon.gif\" align=\"right\" border=\"0\" title=\"PRINT THS PAGE!\"></img></b></A>"; echo "</div>"; Quote Link to comment Share on other sites More sharing options...
Xurion Posted May 14, 2008 Share Posted May 14, 2008 The font is bigger on your printed document? From the limited code you supplied, you're not setting font sizes anywhere. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.