ie5 printing pagebreaks

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

ie5 printing pagebreaks

Post by d1223m »

does anyone know how to get ie 5 to print pages with page breaks?
at the moment we are using

<br clear="all" style=""page-break-before:always;">

this works in mozilla and ie 6
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/pagebreakbefore.asp
Remarks

This property applies when printing the document. This property does not apply to the BR or HR elements.

If there are conflicts between the value of this property and the pageBreakAfter property of the object previously displayed in the browser, the value that results in the largest number of page breaks is used.

Page breaks are not permitted inside positioned objects.
try another block element like <p>
User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

Post by d1223m »

your a star :)

it seems strange that a) br's work in mozilla and ie6 and b) that they should not make it work on br's and hr's

maybe i can understand hr but ...

oh well - it works, thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

development team: it works! and the best thing is we had nothing to do with it. 8)
quality managment: yepp, passed all unit tests
documentation group: but it shouldn't..
someone else: we're already using it.
documentation group: but...

guess how this is going on ;)
Post Reply