Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2008, 08:54 PM
Authorized User
 
Join Date: Nov 2007
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Default print preview problem with IE7

I asked this question on HTML forum, finding no reply am asking for some help here.
I have an application in PHP, works fine. The problem comes when I try to see the print preview in FireFox and IE7. With Firefox it works fine but with IE it is not displaying the full second page. It shows all the page in 'shrink to fit' mode, but when I enlarge it, the second page is missing some information. The page is displaying report in tabular form and I have no idea about this strange behaviour of IE.
Since I posted this message earlier, I have been able to progress a bit. While searching for my answer, I came across a site which suggested to add a new css and then it could be referenced from my php page.
Code:
*, html, body, p, OL, UL, LI, #mainContents, #headerLeft , #headerRight, #whatever, #prettyMuchAnyClass {

    float:none ! important;
    color:#000000;
    background: none;
    overflow:visible;
    text-decoration : none ! important;
    font-size: 10pt ! important;
    font-family: Georgia, Garamond, "Times New Roman", serif; 


}
Now with this I can see the print preview properly, but the lay out of all the pages are way off. Can I get some help here ? or perhaps someone can explain or point me in the right direction.

Thanks.

 
Old June 25th, 2008, 08:36 AM
Authorized User
 
Join Date: Nov 2007
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Default

case solved !
I used
Code:
float:none ! important;
to rule out "float" attribute and it is working fine for both browsers.







Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 print preview problem nasirmunir HTML Code Clinic 1 June 25th, 2008 08:37 AM
Textbox problem print preview vs. print jenisageek Access 5 May 2nd, 2008 12:54 PM
Image preview not working in IE7.Please help subhasps8 ASP.NET 2.0 Professional 0 October 3rd, 2007 12:35 AM
Print Preview problem snanuwa Access 0 August 7th, 2006 09:26 AM
Print Preview problem aspadda Excel VBA 0 March 17th, 2004 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.