472,146 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

IE prints half lines

Hi!

I compared the printed results of two of my pages. One is a very old page,
"styled" almost without any CSS. The other one is a modern page, styled
completely in CSS and styled for printing, i.e. positions in cm, sizes in
pt.

Apparently IE (in this case only IE is used for viewing/printing) makes sure
not to print half lines, if a line doesn't fit on page 1 it is taken to page
2. But only for the old page.
On the new page there are half lines, page 1 is cut off in the middle of the
letters and printed on page 2.

I tried to find out, where is the difference. On both pages there is a table
with space between the table lines. This space is different from the line
height.
So I took the old page and connected some of the table lines to check
whether the printing area is a multiple of the line height by coincidence.
Still the IE took care that there are no half lines. But when I moved the
table on the old page a few millimeters using CSS, I get half lines there,
too.

Any ideas? Is there some kind of "dynamic page margin" that is disabled when
using CSS-positioning?

André

Jul 21 '05 #1
2 2545
André Hänsel wrote:
Still the IE took care that there are no half lines. But
when I moved the table on the old page a few millimeters using CSS, I
get half lines there, too.

Any ideas? Is there some kind of "dynamic page margin" that is
disabled when using CSS-positioning?


Actually there is.
I created a page like this
<body>
<br>
<br>
<br>
....
<br>
<br>
<table cellspacing=0 cellpadding=2>
<tr><td>blah<br>blah<br>blah</td></tr>
<tr><td>blah<br>blah<br>blah</td></tr>
<tr><td>blah<br>blah<br>blah</td></tr>
</table>
</body>

When I change </td></tr><tr><td> to <br> to alter the position of the
subsequent lines, IE varies the padding a bit to avoid half lines.
As soon as I move the table using "position: relative; top: -0.2cm;" it
creates half lines.

But: The variation of the padding is maintained, so when I choose a
displacement that matches the print margin it seems to work... let's see how
long. ;)

Jul 21 '05 #2
André Hänsel wrote:
André Hänsel wrote:


I'm monologising, maybe I should visit a psychiatrist.
Still the IE took care that there are no half lines. But
when I moved the table on the old page a few millimeters using CSS, I
get half lines there, too.

Any ideas? Is there some kind of "dynamic page margin" that is
disabled when using CSS-positioning?


Actually there is.

When I change </td></tr><tr><td> to <br> to alter the position of the
subsequent lines, IE varies the padding a bit to avoid half lines.
As soon as I move the table using "position: relative; top: -0.2cm;"
it creates half lines.
But: The variation of the padding is maintained, so when I choose a
displacement that matches the print margin it seems to work... let's
see how long. ;)


Argh, not very long. :(
This only works when using the "cellpadding" property. When I use td {
padding-top: ... } and borders it does not work.

Now please, opinions? ;)

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by inkapyrite | last post: by
3 posts views Thread by mitchellpal | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.