Jump to content

Printing Issue With CSS Generated Report


elabuwa

Recommended Posts

Hi Guys,

 

I use the below code to make a boring report look more presentable.

 

<style type="text/css">
<!--
.style6 {	font-family: Calibri;
font-size: 36px;
font-weight: bold;
color: #FFFFFF;
}
.style7 {
font-family: Calibri;
font-weight: bold;
font-size:20;
color: #FFFFFF;
}
.heading {
position:absolute;
left:25px;
font-family: Calibri;
font-weight: bold;
font-size:Larger;
color: #000;
}
.accountnumber {
position:absolute;
left:50px;
font-family: Calibri;
font-size:small;
color: #000;
}
.accountname {
position:absolute;
left:150px;
font-family: Calibri;
font-size:small;
color: #000;
}
.amount {
position:absolute;
right:500px;
font-family: Calibri;
font-size:small;
color: #000;
}
.headingtotal {
position:absolute;
right:500px;
font-family: Calibri;
font-weight: bold;
font-size:Large;
color: #000;
}
-->
</style>

 

The page generates absolutely fine.

But when I try to print the stupid page the last column is overlaped.

I think it is because of the RIGHT align issue. But im not sure since I'm new to these whole CSS deal.

 

I call the CSS thingis through php using the below syntax

 

echo "<p class='accountname'><strong>TOTAL ASSETS</strong></p>";
echo "<p class='amount'><strong>$num</strong></p>";

 

Below is a screenshot of my print.

 

localhost-myacc-repo0004.png

 

Can some one please shed some light on how to solve this issue?

 

Thanks in advance

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.