2 replies [Last post]
mkjoker
Offline
Regular
Dresden
Last seen: 16 years 32 weeks ago
Dresden
Timezone: GMT+1
Joined: 2004-09-01
Posts: 40
Points: 0

Dear all,

I've added some styles for printing to an html file. Everything was fine with Firefox and IE until I added page-break-after: always; to 1 div-class.
Now IE collapses as soon as I try to get the print preview.

Does anyone know something about this problem and how it can be solved?

mkjoker

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 6 days 18 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

IE6 collapses on page-break-after: always;

Hi mkjoker,
IE should handel "page-break-after: always;" so it could be something else in combination with that.
Try commenting out all the other styles and see if print preview works then slowly add back the styles to try and find what is causing the problem.

Hope that helps

mkjoker
Offline
Regular
Dresden
Last seen: 16 years 32 weeks ago
Dresden
Timezone: GMT+1
Joined: 2004-09-01
Posts: 40
Points: 0

IE6 collapses on page-break-after: always;

Hi Tony,

good idea!

I did as you suggested and it turned out that (in @media print {} ) IE can't have any margin, padding or border assigend to a div that has page-break-after: allways; at the same time.

I prefered to abandon the page-break-after.

mkjoker