- Joined
- Jan 19, 2007
- Posts
- 2,207
- Reaction score
- 47
I have a very boring black and white page, nothing special at all.
Only a few divs, and each can vary in size depending on what's pulled from the mysql DB. I'm using php.
Basically, most of the time that I print the page, It prints nicely to 1 page where everything is nicely laid out. I have print.css and screen.css stylesheets specified (they happen to be the same).
But sometimes when I print a chunk from the middle of the page is missing or is cut off (not even to be shown on page 2).
I see that css has elements like:
display:block; page-break-before:always;
but I'm not sure that specifying a pagebreak in a div is the best thing for me to do as most of the time my pages are well laid out and only 1 page.
I'm just trying to find a way that should the page be longer, that all the content is printed across the 2 pages with nothing missing.
Has anyone run into this problem and may know a solution?
Only a few divs, and each can vary in size depending on what's pulled from the mysql DB. I'm using php.
Basically, most of the time that I print the page, It prints nicely to 1 page where everything is nicely laid out. I have print.css and screen.css stylesheets specified (they happen to be the same).
But sometimes when I print a chunk from the middle of the page is missing or is cut off (not even to be shown on page 2).
I see that css has elements like:
display:block; page-break-before:always;
but I'm not sure that specifying a pagebreak in a div is the best thing for me to do as most of the time my pages are well laid out and only 1 page.
I'm just trying to find a way that should the page be longer, that all the content is printed across the 2 pages with nothing missing.
Has anyone run into this problem and may know a solution?