style="page-break-before:always not working

Joined
Feb 2, 2007
Messages
2
Reaction score
0
Points
1
I created a web page that is meant to be printed. It consists of a series of tables with page breaks between the tables. My code works perfect on IE on a PC and the pages break where they should. However, on Safari on OS X the page breaks aren't working. I've done some research and as far as I can tell this should work on Safari. Here is the line of code that should be doing the page break.

<p style="page-break-before:always;">a</p>

Earlier in my code I included:
<style type="text/css">

Does anyone have any pointers on how I can get the page break working?

Thanks!
 
OP
K
Joined
Feb 2, 2007
Messages
2
Reaction score
0
Points
1
This is what fixed it.

What I ended up using was @media screen and @media print. The page breaks only apply to print, not the screen and I needed to specify that.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top