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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • array7@inbox.com

    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.

  • Joshua Cranmer

    #2
    Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

    array7@inbox.co m 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

    Comment

    • array7@inbox.com

      #3
      Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

      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.

      Comment

      • Stan Brown

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

        Thu, 17 Jul 2008 21:25:15 GMT from Joshua Cranmer <Pidgeot18
        @verizon.invali d>:
        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

        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:

        Comment

        • Jonathan N. Little

          #5
          Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

          Stan Brown wrote:
          Thu, 17 Jul 2008 21:25:15 GMT from Joshua Cranmer <Pidgeot18
          @verizon.invali d>:
          >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

          Comment

          • Stan Brown

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

            Fri, 18 Jul 2008 19:25:28 -0400 from Jonathan N. Little
            <lws4art@centra l.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

            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:

            Comment

            • Jonathan N. Little

              #7
              Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

              Stan Brown wrote:
              Fri, 18 Jul 2008 19:25:28 -0400 from Jonathan N. Little
              <lws4art@centra l.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

              Comment

              • Ed Mullen

                #8
                Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

                array7@inbox.co m 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
                Help for Mozilla, Firefox and SeaMonkey. Performances and original music.

                FATAL ERROR! SYSTEM HALTED! - Press any key to do nothing.

                Comment

                • array7@inbox.com

                  #9
                  Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

                  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).

                  Comment

                  • array7@inbox.com

                    #10
                    Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

                    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...

                    Comment

                    • Jonathan N. Little

                      #11
                      Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

                      array7@inbox.co m 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

                      Comment

                      • Ed Mullen

                        #12
                        Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

                        array7@inbox.co m 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
                        Help for Mozilla, Firefox and SeaMonkey. Performances and original music.

                        Do Lipton employees take coffee breaks?

                        Comment

                        • Stan Brown

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

                          Tue, 22 Jul 2008 23:31:40 -0400 from Jonathan N. Little
                          <lws4art@centra l.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

                          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:

                          Comment

                          • Jonathan N. Little

                            #14
                            Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

                            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

                            Comment

                            • Helpful person

                              #15
                              Re: Has anyone come up yet with a trick to prevent breaking up tablerows (TR) while printing?

                              On Jul 17, 4:26 pm, arr...@inbox.co m 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.

                              Comment

                              Working...