|
Posted by Michael Laplante on 12/24/06 11:46
"Toby Inkster" <usenet200604@tobyinkster.co.uk> wrote in message
news:ejdji3-4n.ln1@ophelia.g5n.co.uk...
> Michael Laplante wrote:
>
>> In Gecko browser, DIV elements don't print across pages.
>
> You're probably using absolute positioning in your print style sheet -- a
> recipe for disaster.
I don't believe that's the problem here. I've come across several articles
that discuss this DIV problem across pages in Gecko browsers. My centering
DIV is the problem. I get rid of that and the problem goes away in Firefox.
But then I no longer have the margins I was looking for.
> Try the following print CSS:
Tried it. No change. If I leave that centering DIV in to maintain the screen
margins, the DIV won't print across pages in FF but will in IE. If I remove
the DIV, both will print across pages but of course, I lose the margins in
my print version. It's a Gecko quirk that I've seen discussed in several
articles.
I could break up the DIV into smaller portions for a CSS-only solution. Or,
as I am doing now, remove the DIV and replace it with a one-cell table. That
gives my my print margins in both browsers. Neither is an elegant solution.
The third alternative is PDF format which is what I was doing before this,
but that introduces another level of maintenance I was hoping to avoid.
Is it possible to somehow include the contents of external HTML file (say B)
into HTML file A using CSS? That suggests some possibilities to me. . .
M
[Back to original message]
|