473,468 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Has anyone come up yet with a trick to prevent breaking up table rows(TR) while printing?

I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.

I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.

Our clients use various browsers with various environments, so it's
unlikely that spooling a PDF or some other funky format could help us.

We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won't be page-broken for sure.

Jul 17 '08 #1
21 4271
ar****@inbox.com wrote:
I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.
FWIW, Mozilla doesn't yet support page-break-*: avoid at all; Opera and
Safari print them (there ARE other browsers than IE & FF, you know).
I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.
The easiest trick is to switch to a browser that supports the
properties. Although I am a FF user myself, Opera and Safari have better
CSS support in most areas, including printing CSS support.

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Jul 17 '08 #2
The easiest trick is to switch to a browser that supports the
properties. Although I am a FF user myself, Opera and Safari have better
CSS support in most areas, including printing CSS support.

It's much more likely that our users will switch to another web site,
than we get them to change browsers for the sake of just printing our
content properly, I'm afraid.
Jul 18 '08 #3
Thu, 17 Jul 2008 21:25:15 GMT from Joshua Cranmer <Pidgeot18
@verizon.invalid>:
The easiest trick is to switch to a browser that supports the
properties. Although I am a FF user myself, Opera and Safari have better
CSS support in most areas, including printing CSS support.
Not just CSS -- Mozilla 1.7 had the nasty habit of breaking images
across pages, and FF 2 still does.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 18 '08 #4
Stan Brown wrote:
Thu, 17 Jul 2008 21:25:15 GMT from Joshua Cranmer <Pidgeot18
@verizon.invalid>:
>The easiest trick is to switch to a browser that supports the
properties. Although I am a FF user myself, Opera and Safari have better
CSS support in most areas, including printing CSS support.

Not just CSS -- Mozilla 1.7 had the nasty habit of breaking images
across pages, and FF 2 still does.
Mozilla 1.7? Obsolete browser from 2005. SeaMonkey is the up to date
version.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jul 18 '08 #5
Fri, 18 Jul 2008 19:25:28 -0400 from Jonathan N. Little
<lw*****@central.net>:
Stan Brown wrote:
Not just CSS -- Mozilla 1.7 had the nasty habit of breaking images
across pages, and FF 2 still does.

Mozilla 1.7? Obsolete browser from 2005. SeaMonkey is the up to date
version.
Perhaps you overlooked the rest of my statement, that Firefox 2 has
the same problem.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 19 '08 #6
Stan Brown wrote:
Fri, 18 Jul 2008 19:25:28 -0400 from Jonathan N. Little
<lw*****@central.net>:
>Stan Brown wrote:
>>Not just CSS -- Mozilla 1.7 had the nasty habit of breaking images
across pages, and FF 2 still does.
Mozilla 1.7? Obsolete browser from 2005. SeaMonkey is the up to date
version.

Perhaps you overlooked the rest of my statement, that Firefox 2 has
the same problem.
Firefox is currently at version 3.0. Also later versions of 2.x and my
latter versions of my SeaMonkey do not break across images. SeaMonkey
has the embedded mail client and I am always receiving emails with
pictures, haven't had a problem with broken images since, well Mozilla
1.7.x!

Now that said, websites that were designed by Absolute-Position-Freaks
present printing problems for all browsers...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jul 19 '08 #7
ar****@inbox.com wrote:
I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.

I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.

Our clients use various browsers with various environments, so it's
unlikely that spooling a PDF or some other funky format could help us.

We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won't be page-broken for sure.
What do you want to happen when a table is too long to fit on a piece of
paper?

Also, I'm not having any problems with printing of tables in SeaMonkey
or Firefox.

It would help to post a URL and describe what unwanted action is
happening when printing the page.

--
Ed Mullen
http://edmullen.net
FATAL ERROR! SYSTEM HALTED! - Press any key to do nothing.
Jul 19 '08 #8
On Jul 19, 10:36*am, Ed Mullen <e...@edmullen.netwrote:
>
What do you want to happen when a table is too long to fit on a piece of
paper?

Also, I'm not having any problems with printing of tables in SeaMonkey
or Firefox.

It would help to post a URL and describe what unwanted action is
happening when printing the page.

--
Ed Mullenhttp://edmullen.net
I would want such table to be broken along the TR lines, meaning that
a page break should not occur inside a table row or (if an alternative
to a table is chosen) inside a block of information.

I'll see if I can set a sample somewhere, since I'm pretty sure
Firefox tears table rows (just checked on my browser v2.0).

Jul 23 '08 #9
On Jul 19, 10:36*am, Ed Mullen <e...@edmullen.netwrote:
>
What do you want to happen when a table is too long to fit on a piece of
paper?

Also, I'm not having any problems with printing of tables in SeaMonkey
or Firefox.
I want to make sure that a table row or a block of information, if
tables are not used, is not torn by a page break when printing.

I just verified with Firefox 2.0, it does that.

I'll see if I can put an example somewhere...
Jul 23 '08 #10
ar****@inbox.com wrote:
I want to make sure that a table row or a block of information, if
tables are not used, is not torn by a page break when printing.

I just verified with Firefox 2.0, it does that.

I'll see if I can put an example somewhere...
Why are you using a 2-year old version of Firefox. Unlike that OS
component that masquerades as a web browser, Firefox and others like
Opera are not linked to the OS and can be upgraded, usually
automatically. Firefox 2.0 had a number of display bugs, many fixed in
later version of 2.x.x and even more in v3.0.1...

<trimmed xposts m.p.w.i.i.b doesn't really apply>
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jul 23 '08 #11
ar****@inbox.com wrote:
On Jul 19, 10:36 am, Ed Mullen <e...@edmullen.netwrote:
>What do you want to happen when a table is too long to fit on a piece of
paper?

Also, I'm not having any problems with printing of tables in SeaMonkey
or Firefox.

It would help to post a URL and describe what unwanted action is
happening when printing the page.

--
Ed Mullenhttp://edmullen.net

I would want such table to be broken along the TR lines, meaning that
a page break should not occur inside a table row or (if an alternative
to a table is chosen) inside a block of information.

I'll see if I can set a sample somewhere, since I'm pretty sure
Firefox tears table rows (just checked on my browser v2.0).
I'm sorry. Your answer didn't really address directly what I asked.
But, the most important thing is that you didn't provide any URLs to
examples of what you're trying to do and why it's not working.

--
Ed Mullen
http://edmullen.net
Do Lipton employees take coffee breaks?
Jul 23 '08 #12
Tue, 22 Jul 2008 23:31:40 -0400 from Jonathan N. Little
<lw*****@central.net>:
Why are you using a 2-year old version of Firefox. Unlike that OS
component that masquerades as a web browser, Firefox and others like
Opera are not linked to the OS and can be upgraded, usually
automatically. Firefox 2.0 had a number of display bugs, many fixed in
later version of 2.x.x and even more in v3.0.1...
Though I was a bit miffed at the tone of a suggestion made earlier, I
nonetheless followed it and upgraded to Firefox 3.0.1. I like it so
far, particularly with the prefbar extension.

One minor lack: there's no Print Preview on the toolbar and I can't
figure out how to add it. Yes, I can do it through the menu but I use
PP so often that I'd like a one-click solution.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 24 '08 #13
Stan Brown wrote:
One minor lack: there's no Print Preview on the toolbar and I can't
figure out how to add it. Yes, I can do it through the menu but I use
PP so often that I'd like a one-click solution.
I wish it did too, as far as I remember FF never had Preview button, my
browser is SeaMonkey which does. Maybe there is an extension out there...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jul 24 '08 #14
On Jul 17, 4:26*pm, arr...@inbox.com wrote:
I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.

I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.

Our clients use various browsers with various environments, so it's
unlikely that spooling a PDF or some other funky format could help us.

We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won't be page-broken for sure.
I tackled this problem about 2 a year ago. However, I never found a
solution. One can't even force a page break between table rows. Hope
someone can come up with an answer.
Jul 25 '08 #15
Wed, 23 Jul 2008 22:48:51 -0400 from Jonathan N. Little
<lw*****@central.net>:
Stan Brown wrote:
One minor lack: there's no Print Preview on the toolbar and I can't
figure out how to add it. Yes, I can do it through the menu but I use
PP so often that I'd like a one-click solution.

I wish it did too, as far as I remember FF never had Preview button, my
browser is SeaMonkey which does. Maybe there is an extension out there...
Do you, or does anyone, know where there is support for Firefox
questions other than in the Firefox forum at
http://support.mozilla.com/forum ?

I tried several times to ask a question, but each time I got an error
message that I had mistyped the five-digit verification number. I
can imagine that I might mistype it once, but it's a bit of a stretch
to think that I would mistype every one of half a dozen different
numbers.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 27 '08 #16
Stan Brown wrote:
Wed, 23 Jul 2008 22:48:51 -0400 from Jonathan N. Little
<lw*****@central.net>:
>Stan Brown wrote:
One minor lack: there's no Print Preview on the toolbar and I can't
figure out how to add it. Yes, I can do it through the menu but I use
PP so often that I'd like a one-click solution.

I wish it did too, as far as I remember FF never had Preview button, my
browser is SeaMonkey which does. Maybe there is an extension out
there...

Do you, or does anyone, know where there is support for Firefox questions
other than in the Firefox forum at http://support.mozilla.com/forum ?
mozilla.support.firefox on server news.mozilla.org

It also has mozilla.support.seamonkey (and other groups).

I don't know if there's duplication between m.s.f and the web forum you
mention; I try to avoid web forums.
--
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project: http://improve-usenet.org
Need a new news feed? http://blinkynet.net/comp/newfeed.html

Jul 27 '08 #17
Blinky the Shark wrote:
Stan Brown wrote:
>Wed, 23 Jul 2008 22:48:51 -0400 from Jonathan N. Little
<lw*****@central.net>:
>>Stan Brown wrote:
One minor lack: there's no Print Preview on the toolbar and I can't
figure out how to add it. Yes, I can do it through the menu but I use
PP so often that I'd like a one-click solution.
I wish it did too, as far as I remember FF never had Preview button, my
browser is SeaMonkey which does. Maybe there is an extension out
there...
Do you, or does anyone, know where there is support for Firefox questions
other than in the Firefox forum at http://support.mozilla.com/forum ?

mozilla.support.firefox on server news.mozilla.org

It also has mozilla.support.seamonkey (and other groups).

I don't know if there's duplication between m.s.f and the web forum you
mention; I try to avoid web forums.

Also:

http://forums.mozillazine.org/

--
Ed Mullen
http://edmullen.net
The hilarious thing about self-important self-righteous people is that
they are so easily baited.
Jul 27 '08 #18
Ed Mullen wrote:
Blinky the Shark wrote:
>Stan Brown wrote:
>>Wed, 23 Jul 2008 22:48:51 -0400 from Jonathan N. Little
<lw*****@central.net>:
Stan Brown wrote:
One minor lack: there's no Print Preview on the toolbar and I can't
figure out how to add it. Yes, I can do it through the menu but I use
PP so often that I'd like a one-click solution.
I wish it did too, as far as I remember FF never had Preview button,
my browser is SeaMonkey which does. Maybe there is an extension out
there...
Do you, or does anyone, know where there is support for Firefox
questions other than in the Firefox forum at
http://support.mozilla.com/forum ?

mozilla.support.firefox on server news.mozilla.org

It also has mozilla.support.seamonkey (and other groups).

I don't know if there's duplication between m.s.f and the web forum you
mention; I try to avoid web forums.
Also:

http://forums.mozillazine.org/
Grrrrr...web forums...grrrrr... ;)
--
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project: http://improve-usenet.org
Need a new news feed? http://blinkynet.net/comp/newfeed.html

Jul 28 '08 #19
Blinky the Shark wrote:
Ed Mullen wrote:
>Blinky the Shark wrote:
>>Stan Brown wrote:

Wed, 23 Jul 2008 22:48:51 -0400 from Jonathan N. Little
<lw*****@central.net>:
Stan Brown wrote:
>One minor lack: there's no Print Preview on the toolbar and I can't
>figure out how to add it. Yes, I can do it through the menu but I use
>PP so often that I'd like a one-click solution.
I wish it did too, as far as I remember FF never had Preview button,
my browser is SeaMonkey which does. Maybe there is an extension out
there...
Do you, or does anyone, know where there is support for Firefox
questions other than in the Firefox forum at
http://support.mozilla.com/forum ?
mozilla.support.firefox on server news.mozilla.org

It also has mozilla.support.seamonkey (and other groups).

I don't know if there's duplication between m.s.f and the web forum you
mention; I try to avoid web forums.
Also:

http://forums.mozillazine.org/

Grrrrr...web forums...grrrrr... ;)

Yeah, yeah, I know, me too. But, Mozillazine is a great source for Moz
products support and info.

--
Ed Mullen
http://edmullen.net
Very funny Scotty - now beam down my clothes.
Jul 28 '08 #20
Sun, 27 Jul 2008 08:18:21 -0400 from Stan Brown
<th************@fastmail.fm>:
Do you, or does anyone, know where there is support for Firefox
questions other than in the Firefox forum at
http://support.mozilla.com/forum ?
[where the CAPTCHA verification seems to be broken]

Sun, 27 Jul 2008 14:05:59 -0400 from Ed Mullen <ed@edmullen.net>:
http://forums.mozillazine.org/
Sun, 27 Jul 2008 07:50:51 -0700 from Blinky the Shark
<no*****@box.invalid>:
mozilla.support.firefox on server news.mozilla.org
My thanks to you both!

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 28 '08 #21
On Jul 25, 12:57*pm, Helpful person <rrl...@yahoo.comwrote:
On Jul 17, 4:26*pm, arr...@inbox.com wrote:


I have been reading a lot of archived threads about "page-break-
inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox
(Mozilla), which creates a really unpleasant-looking printout with
broken table rows.
I wonder if after all these years in discussion anyone had come up
with a trick using maybe some combination of "page-break-before",
"page-break-after" or div properties that would prevent the
situation.
Our clients use various browsers with various environments, so it's
unlikely that spooling a PDF or some other funky format could help us.
We would really like to determine the HTML/DHTML/JavaScript solution.
Maybe even not using tables, but div or paragraph elements - something
that won't be page-broken for sure.

I tackled this problem about 2 a year ago. *However, I never found a
solution. *One can't even force a page break between table rows. *Hope
someone can come up with an answer.- Hide quoted text -

- Show quoted text -
I set up 2 sample pages to illustrate the problem.

http://array7.angelfire.com/print.html
http://array7.angelfire.com/print2.html

The table displayed is cut during printing inside a table row in both
IE & Firefox.
These browsers (IE6 & Firefox 2 are the two most common clients used
to browse our web site).

Jul 28 '08 #22

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bruce W...1 | last post by:
I made my first PHP page that uses includes. http://php.didah.com/main.php But I can't get rid of a gap (about 5 pixels) between the table rows. The content of each include file is one line like...
10
by: John | last post by:
I have a table with two rows. On the first row is a text box and in the second row is an image. I have set the table cellpadding to 0 and cellspacing to 0. The table is leaving extra spaces in the...
5
by: Harry Gould | last post by:
To all, I'm a newbie here, so please bear with me. I develop web pages for a company intranet where Internet Explorer 6 is the standard. Now I must develop a public internet website that is...
9
by: Wang, Jay | last post by:
I try to group several rows in a table into a div and show/hide them by click on a button somewhere with a javascript link. When clicked, the link will toggle the style of the div section's style...
1
by: luvdairish | last post by:
Can someone please look at my code and see why tables are not hiding properly? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Untitled Document</TITLE> <META...
3
by: AR | last post by:
Hi, How can I hide table rows? ... tried with the following example: FireFox works... How to do the simillar in IE6? <html> <head> <script language="javascript"> function hide_row() { var v...
3
by: mike | last post by:
If I have a table defined with multi-level rows I'd like to change the first level row color background. So the table looks like: <table id="mytable"> <tr>...
7
by: leiño | last post by:
Hi, i am adding table rows dynamically with javascript. This works fine. The table is inside a div with scrolls, initially with 6 rows: ..... <div style='overflow:auto; width:100%;...
0
by: array7 | last post by:
I have been reading a lot of archived threads about "page-break- inside: avoid" not supported by IE5, IE6 IE55, IE7 and Firefox (Mozilla), which creates a really unpleasant-looking printout with...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.