If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

iPad and Laptop treating page-break-after differently

I teach Spanish and I've written a script to create remediation sheets for students based on their recorded progress. So, my first objective is to generate a webpage with data for 35 different students pulled from a database. Way easy. My second objective is to put page breaks between the students so that I can print the webpage and every student has his/her own sheet. Kind-of-success.

My problem is that my laptop prints just fine, but I want this ability from my iPad. I've written my entire website so that I can teach from my iPad in class and be totally unbound from my laptop. When I run the same script (load the same page) from my iPad, I get an BLANK page between every student. I'm using page-break-before: always in a recurring <div></div> loop with the entire data-set for a student inside a div.

I captured a source code from the laptop AND from the iPad, and they're both identical. So, the problem is that they are treating the page-break-after differently. I don't understand. While the page is generated using PHP, that is not the issue. It is the browser interpretation of the CSS/HTML which is causing the problem. Hence, I have included the sample HTML source code for the first 2 students in the class.

OKAY, LET ME BRIEFLY RESTATE THE PROBLEM HERE: Between the two <div></div> the iPad is printing a blank page, but the laptop is not. The laptop is printing as desired … one page per student. The iPad is printing one page per student with a blank page inbetween each. THANK YOU!!!