• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

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