Jump to content

Printing Problem - CSS not printing?


etdsbastar

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.