Jump to content

Recommended Posts

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]

Link to comment
https://forums.phpfreaks.com/topic/245914-printing-problem-css-not-printing/
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.