• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

page-break-after: always causing vertical alignment problem

 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All, I have added the following code to my HTML :

As shown in several posts I have seen on JavaRanch in order to make my reports contain a page break. The problem I am seeing is that when I have more than one page with page breaks in between, for some reason the pages start rendering about half way down the actual printed page. The breaks do occur as desired, but I am not sure why this would cause the page to no longer start printing at the top of the paper.
Has anyone else experienced this?
Thanks,
Kim
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the posts here: http://www.experts-exchange.com/Web/Web_Languages/CSS/Q_20876141.html
Explains the problems that this method has and solutions...
Eric
 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Eric. That was a HUGE help. I spent hours yesterday searching the web for just such an article.
What I learned from it has helped my "friendly" report output print better. It also helped me to learn that printing from HTML is not an exact science, that quirkey things can happen depending on the browser and/or the printer, so I won't kill myself to try to get it perfect.
In case anyone is following this thread, the biggest problem I had was that my reports were in tables, and all the tables were contained in one outer table for formatting purposes. So, even though I was putting the page break between the report tables, the break was still within an outer table. Once I removed the outer table, the formatting improved dramatically.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic