1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Rep Power

    Media type print inconsistent results across different browsers

    Hi all,

    I'm sitting with this problem that just boggles my mind.

    I have created a print friendly version of my stylesheet that only displays the text in a div (several pages). The div is set with a padding of 20% to give the page extra margin, that's about it.

    To generate a page break. I use

    .page_break {
    display: block; 
    page-break-before: always;
    page-break-inside: avoid;
    I have read that there is a bug that manifests itself if you have elements that floats, so I don't have any.

    The problem in the meantime is that when I print the page, the result is inconsistent across different browsers.

    I'm on a Linux box with Firefox 17.0.1 and it looks like I want it to.
    My friend tested it on Safari on OSX and here there is blank pages for each page break I make. If I remove the page breaks, the page is printed as suspected - as one long stream with respect to the styling.

    So what could be the issue?
    Last edited by odp; January 24th, 2013 at 10:56 AM. Reason: type0

IMN logo majestic logo threadwatch logo seochat tools logo