• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

web page breaks in IE4

Does anyone know how to make a page break happen with IE4.
I have tried using the style

<p style="page-break-after:always">xxxx"</p> and it doesn't work for me.

I am trying to page break inside a table. Is that the problem ? It works fine with IE5.
  • 3
  • 2
1 Solution
Jean Marie GeeraertsApplication EngineerCommented:
I verified using Bradsoft's TopStyle if the applied styled is supported by IE4 and apparently it is. (You can download an evaluation copy at http//www.bradsoft.com)
I use this software to verify that the styles I use are supported in the different browsers that are available on our intranet.
Unfortunately I can't test for IE4.
But you might very well be right in assuming that the table is causing the problem. You can easily find out if that's the case. For testing purposes, put a page-break just before the table and see if the table gets printed on the next page.
I have successfully used this one once; not inside a table and not in MSIE4 (it worked in MSIE5):

<DIV STYLE="page-break-before: right;"></DIV>

It's part of CSS2 (see http://www.w3.org/TR/REC-CSS2), which got only partially supported, even in MSIE5 (don't know about 5.5 and 6). No luck in Netscape 4.7 either!

I have a feeling that it's NOT going to work in MSIE4.... as you observed.
FYI: I tried alternatives like @NewLine, @Char(10), @Char(13) etc. as well: did not succeed!
Jean Marie GeeraertsApplication EngineerCommented:
It works in IE4 too, I'm just not sure whether it will work if it's inside a table. Might be that the problem is there.
Anyway, we'll know once pcorreya tests it.
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

pcorreyaAuthor Commented:
jerrit & CRAK

I did some testing, it doesn't work inside a table, but only works outside the table.

Thanks for your help.

Jean Marie GeeraertsApplication EngineerCommented:
I thought as much, but couldn't test, since I don't have a PC with IE4 available here (or at home).
Anyway, glad to have been of some help to you.
Thanks for the info!
This way we all learn some!  ;-))
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now