etdsbastar Posted August 28, 2011 Share Posted August 28, 2011 Hello there, My php page is using CSS to generate reports and generates UTF-8 encoded characters. But, they are not being printed when I use the javascript print button. Please also see the attached pdf print. Actually it is in UTF-8 encoding. How to print with CSS designs? Please Help. Here is the code: ... <link rel=stylesheet HREF="/npms/css/taxes.css" type="text/css" media="print"> <div id="content"> ... </div> and here is the css: @media print { #labelopt { margin: 0; font-family: 'Kruti Dev 010'; color: #000000; padding: 2px; text-align: left; font-size: 100%; } #labelmust { margin: 0; font-family: 'Kruti Dev 010'; color: #000066; padding: 2px; text-align: left; font-size: 100%; font-weight: bold; } #labelleft { margin: 0; font-family: 'Kruti Dev 010'; color: #000066; padding: 2px; text-align: left; font-size: 100%; font-weight: bold; } #labelright { margin: 0; font-family: 'Kruti Dev 010'; color: #000066; padding: 2px; text-align: right; font-size: 100%; font-weight: bold; } #labelcenter { margin: 0; font-family: 'Kruti Dev 010'; color: #000066; padding: 2px; text-align: center; font-size: 100%; font-weight: bold; } .box { width: 15px; height: 15px; border: 1px solid #FFFFFF; background: #000066; float: left; } th#thhead { margin: 0; font-family: 'Kruti Dev 010'; color: darkgreen; text-align: left; font-size: 100%; font-weight: bold; } } [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Frank P Posted August 29, 2011 Share Posted August 29, 2011 Your link is broken and I don't understand your question. Why don't you just open your stylesheet with e.g. Notepad and have it printed from there (File | Print)? 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.