Solved

firefox and ie

Posted on 2012-03-25
3
350 Views
Last Modified: 2012-03-26
Hi
i have a report to print i m using php mysql
the first pages are fine and the last is strectched..
how i can fix the height that the graph in the report can be in the same page for firefox and ie
please find attached pdf and you will see the stretched page
that is my css for ie and for firefox
-->[b]for ie[/b]
<style type="text/css"  >
@media print {
input#BTNPRINT {
display: none;
}
}    
.table2 {
      position:relative;
        /*top:-50px;*/
 border:1px solid #000;
    
      font-family:arial,sans-serif;
      font-size:80%;
      height:100%;
      width:100%; 
}
body {
 
height:100%;
} 
#table4{
        border:3px solid #fff;
        position:relative;
        top:-5px;  
        
}
th{
	border:1px solid #000;
	border-collapse:collapse;
	padding:5px;
}	
#fn,#dp,#ar{width:110px;}
#fr,#to{width:90px;}
caption{
	
	font-size:100%;
	border:1px solid #000;
	border-bottom:none;
	padding:20px 0 0 0;
	text-align:left;
}
#td1{
	 
        background-color:#9cf;
         
}	

</style>

Open in new window

-->for firefox
<style type="text/css">
@media print {
input#BTNPRINT {
display: none;
}
}    
 
.table2 {
      position:relative;
        /*top:-50px;*/
 border:1px solid #000;
    
      font-family:arial,sans-serif;
      font-size:60%;
      height:100%;
      width:100%; 
}
body {
        height: 950px;
        width:850px;
        /* to centre page on screen*/
        margin-left: auto;
        margin-right: auto;
    } 
#table4{
        border:3px solid #fff;
        position:relative;
        top:-5px;  
        
}
th{
	border:1px solid #000;
	border-collapse:collapse;
	padding:5px;
}	
#fn,#dp,#ar{width:110px;}
#fr,#to{width:90px;}
caption{
	
	font-size:100%;
	border:1px solid #000;
	border-bottom:none;
	padding:20px 0 0 0;
	text-align:left;
}
#td1{
	 
        background-color:#9cf;
         
}	

</style>

Open in new window


any help please
CAMPION-The-Power-Behind-The-Wat.pdf
0
Comment
Question by:asaidi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 37763846
In all the questions about printing from a browser, I have never seen anyone get a satisfactory answer.  Browsers are just not made for paper format printing.  The best solution has always been to create a PDF on the server where it's under your control and let them download that.
0
 

Author Comment

by:asaidi
ID: 37764890
hi DaveBaldwin
thank you for your confirmation..
and is there example of how to create a PDF on the server and let the users view it when they query the database
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37766898
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question