|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Page break for dynamic tables
I have a page that displays a query in several different size tables usingMiller, Matthew P HM1 07/11/03 07:49 A Miller, Matthew P HM1 wrote:Jochem van Dieten 07/11/03 08:26 A > Then you have to make smaller tables. You can only use CSS to insertThomas Chiverton 07/11/03 08:35 A Thomas Chiverton wrote:Jochem van Dieten 07/11/03 09:01 A as far as I remember, you need to define print instructions on a seperate stylesheet block.Mahmut Basaran 07/11/03 08:13 A 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 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 > 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. 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 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 -----
|
May 23, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||