page-break-after: always causing vertical alignment problem
Joined: May 17, 2001
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
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.