Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. Share your own thoughts and experience, accounts may be terminated for violations.

part printed page CSS

Status
Not open for further replies.
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?
 
Added:

Very weird I've just been playing around with browsers and settings and Safari (Mac) prints everything by dividing the pages without skipping any content (which is what I wanted), but Firefox (Mac) doesn't play nice !
 
Status
Not open for further replies.
Top Bottom