• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Page Breaking in HTML code?

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 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="text/css"> P { page-break-after: always } </STYLE>
<P CLASS="breakhere">
But this also is of no use...
Code is :
<html>
<head>
<title>Testing List</title>
<meta http-equiv="Content-Type" content="text/html; charset=shift_JIS">

</head>
<body>
<table align="center">
<tr>
<td nowrap>
<div>
<style>#f1{font:bold 14pt Tahoma;text-decoration:underline;color:#00007f}</style>
<span style="position:absolute;top:18pt;left:316pt" id=f1>Testing List</span>
<span style="position: absolute; top:4.5pt;left:13.5pt; width:126.0pt;height:47.3pt; ">
<img src=058018660.gif width=168 height=63 border=0">
</span>
<span style="position:absolute;top:594pt;left:316pt" id=f1>Testing List</span>
<span style="position: absolute; top:580.5pt;left:13.5pt; width:126.0pt;height:47.3pt; ">
<img src=058018660.gif width=168 height=63 border=0">
</span>
</div>
</td>
</tr>
</table>
</body>
</html>
 
reply
    Bookmark Topic Watch Topic
  • New Topic