You are here: Re: Limiting content width - DIV or BODY? « HTML « IT news, forums, messages
Re: Limiting content width - DIV or BODY?

Posted by Michael Laplante on 11/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация