#1
  1. Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    25
    Rep Power
    0

    [CSS] weird print bug in IE


    if you check out this website you'll immediately understand what the problem is about.

    The script I wrote, pulls pictures out of a database and displays them. I have a print feature (click the link that says: Ik wil de klassenlijst van **** afprinten).

    With Css I check wether or not a picture can be displayed on this page or if it has to be forced onto another page, when printed.

    Code:
    <style type="text/css" media="print"> 
    
    	table {
    		page-break-before: auto;
    	}
    </style>
    When you check the webpage, you'll notice this row gives problems in IE.
    When I print the page from Internet Explorer: this row shows on the page, but not the picture that goes along with it.
    When I print the page from Mozilla: this row does not show on the page, neither the picture that goes along with it. as it should be

    Can someone help me? It is very important that the pagebreak is automagically forced when printed, because I can't guess the format on which people will print.
    Last edited by musti; January 26th, 2004 at 12:40 PM.
  2. #2
  3. Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    25
    Rep Power
    0
    Code:
    <style type="text/css" media="print"> 
    
    	table {
    		page-break-after: auto;
    	}
    </style>
    Doesn't seem to work either
  4. #3
  5. Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    25
    Rep Power
    0
    Code:
    .print table {
    page-break-after: auto;
    }
    or
    Code:
    .print table {
    page-break-after: auto;
    }
    neither

IMN logo majestic logo threadwatch logo seochat tools logo