473,322 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 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 2605
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Astra | last post by:
Hi All This is really bizarre prob that I don't know how I'm going to get round it. In essence I have created a site that allows the user to select their preferred shoe size, this then gets...
1
by: inkapyrite | last post by:
Hi all. I'm using ifstream to read from a named pipe but i've encountered an annoying problem. For some reason, the program blocks on reading an ifstream's internal buffer that's only half-filled....
6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
1
by: Tim Frawley | last post by:
I have created a Crystal Report with five subreports to represent datagrids on our dataentry application. The largest datagrid is the last item on the report. When empty this last subreport will...
3
by: mitchellpal | last post by:
guys.... help me out here... my code is running halfway... how do i complete the other right half....... pp.. the user should input an odd number btw 0 and 20 then the program displays th shape as...
1
by: tghamm | last post by:
Hey everyone, I'm trying to output a text file to a printer, and for some reason, it prints over itself, something that should be 15 pages can be from 4-8 pages, and it changes each time I try it. ...
2
by: sphinney | last post by:
OK, is Access 2007 driving anyone else nuts? I've got three lines of VBA code that sends a report to the printer: DoCmd.OpenReport RPT_NAME, acViewPreview, , , , ARGS DoCmd.RunCommand...
9
by: Nathan Sokalski | last post by:
I have a Console Application, and when I do a "Start Without Debugging" to test it, everything works, but it will not allow me to make the window wider than half my screen. Even if I maximize it,...
9
by: tvnaidu | last post by:
This is just small plain HTML program wtote manually (since I am new to web programming, may be some tools I can use I think), this program loaded onto microcontroller with small foot print web...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.