473,699 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2615
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 "cellpaddin g" 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
2875
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 added to a simple cart and then they submit the cart order. The problem is that even though I'm being a good lad and using &frac12; to display the half sizes in the drop-down selector, eg Size 3, Size 3&frac12;,
1
6249
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. Only when the buffer becomes full does it resume execution. Here's my test code for reading from a pipe: //(compiled with g++ -std=c++98) //--------------------------------------------- #include <iostream>
6
3315
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 parameter query which is the recordsource for the report. The parameter is <=. The query returns the correct amounts upto the date entered (no need for "between" dates here). There are 8 textboxes with dcounts; 2 other boxes Sum some of these
1
8605
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 print on page one of the report about halfway down the page. The problem is when this subreport has more than 50 rows it grows off the page. Not a problem as it will print all the pages necessary for this subreport but it starts the report on...
3
5768
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 shown....i.e two half diamonds...e.g if no. is 3 output; * * * * * #include <stdio.h> void star(int num);
1
1660
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. Something is definitely wrong. I checked the printpage event, it gets called all 15 times for the 15 pages of data, but the number of pages spooling doesnt change at the same pace. I dont get it. Below is my code, any ideas why this would...
2
7049
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 acCmdQuickPrint DoCmd.Close acReport, RPT_NAME, acSaveNo These lines worked perfectly in Access 2003. Now with 2007, the report is being sent to the wrong printer. I don't understand why Access 2007 has choosen the particular printer it's sending the...
9
5342
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, it takes the full height, but only half the width. This is very annoying, because sometimes lines are longer than half the screen. Why is this, and is there any way to allow me to make it take up the whole screen? Thanks. -- Nathan Sokalski...
9
1965
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 server, when program prints, half-way it prints, then it struck, any issue with this?. when user clicks "submit" again it loaded same page. but it sends some sytring to server (plug1=ON&......), that string will be processed inside server. any open...
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9192
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9054
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8895
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7781
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.