Solved

firefox and ie

Posted on 2012-03-25
3
326 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
  • 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WebSite Direction 1 38
How do I remove adware and viruses from Chrome 8 31
Browser Chrome downloads colored link 5 40
Joomla 2.5 shopping cart 7 23
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

815 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now