Can you use a page-break in a DIV
Posted on 2007-07-26
I first generated a seperate asp print page that was passed querysting values and looped through a recordest building at table, I used a modulator to count out 66 rows and on the 67 I build a new header and inserted a page-break in the table row. The page was the set to print on page load. All this worked fine, the document printed and the line breaks worked a treat.
However I wasn't happy with the open window look and feel so I decided to build the table within the ASP page that the original link was in, this meant showing the 'viewable version' and hiding the 'printable version' in a hidden DIV tag and use @media print to print out the page.
Again this approach worked fine except that the page-break stopped working??
Is it not possible to use a page-break within a DIV tag?