House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Page break for dynamic tables

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Miller, Matthew P HM1
07/11/2003 07:49 AM

I have a page that displays a query in several different size tables using cfloop. When I print the page I don't want the table broken up on two separate pages. I was trying to use: <style type="text/css"> TABLE { page-break-before: auto ;} </style> but it just isn't working, my table is still split between two pages. Any help on how to put page breaks on dynamic tables, only when necessary would be extremely helpful. Thanks in advance, Matt

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jochem van Dieten
07/11/2003 08:26 AM

Miller, Matthew P HM1 wrote: > I have a page that displays a query in several different size tables using > cfloop. When I print the page I don't want the table broken up on two > separate pages. Then you have to make smaller tables. You can only use CSS to insert extra pageebreaks, not to magically make the size of your piece of paper larger. > <style type="text/css"> > TABLE { page-break-before: auto ;} > </style> You are missing a media declaration. Jochem

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Thomas Chiverton
07/11/2003 08:35 AM

> Then you have to make smaller tables. You can only use CSS to insert ----- Excess quoted text cut - see Original Post for more ----- Even if you use .somename rather than TABLE, and wrap every N <tr>'s in a div with an id of somename ? -- Thomas C Advanced ColdFusion Programmer HANDLE WITH EXTREME CARE: This Email Contains Minute Electrically Charged Particles Moving at Velocities in Excess of Five Hundred Million Miles Per Hour. PLEASE ALSO NOTE: I don't speak for the company that sent this.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jochem van Dieten
07/11/2003 09:01 AM

Thomas Chiverton wrote: ----- Excess quoted text cut - see Original Post for more ----- page-break-before is something like a hard linebreak. Whenever a line of text doesn't fit there will be a soft break. You can enter hard breaks if you want to force more breaks, but that does not mean that the needed soft breaks go away. Jochem

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mahmut Basaran
07/11/2003 08:13 AM

as far as I remember, you need to define print instructions on a seperate stylesheet block. <STYLE MEDIA="print"> TABLE { page-break-before: auto ;} </STYLE> haven't tested the above, but it should work fine. ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 23, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference