Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page break In HTML in IE6/NN6.2

Status
Not open for further replies.

ashwaniky

Programmer
Sep 24, 2002
2
JP
Hello,
I am facing one problem in my HTML code,actually I have long HTML code that I am viewing by IE6/NN6.2.
What I want in this is that it should break in pages for printing purpose.

Sending you for your reference one sample code, here in this while I am viewing it through my browser's print preview the next page get displaced little bit below(you can check it by seeing both pages, the second page heading i.e Testing List gets displaced little bit below than its original place)...and I am having so many pages(nearly 100) like this and every page gets displaced little bit below and so on..

Even though I tried it by putting the following lines of code in it:

<STYLE TYPE=&quot;text/css&quot;> P { page-break-after: always } </STYLE>
----
----
----
<P CLASS=&quot;breakhere&quot;>

But this also is of no use...
 
Did you make a mistake when you posted the question or is this mistake in your code?

P { page-break-after: always }
This will put the break after ALL paragraphs

It should be:
p.breakhere { page-break-after: always }
or just
.breakhere { page-break-after: always }

Not sure if it will help, but maybe try to pur the page break after approx 3/4 of a printed page, ie dont pack the printed page.


É

:: ::
 
Yes I tried but this is not at all working..As may be because its an HTML CSS code so can you suggest me some workaround for this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top