Re: [css-d] Keeping table rows together when printing.

2008-02-23 Thread Richard Grevers
On 2/23/08, James Smith [EMAIL PROTECTED] wrote:
 I have a table that looks similar to...

  Product Name - Other details
Order
Order
Order
  Another Product - Other Details
Order
  Yet Another Product - Other Details
Order
Order

  When printing I would like the order detail rows to be kept with the product
  details and not page break in between (product and order) or (order and
  order) but only between (order and product).

  I know that css has the page-break-before, page-break-after and
  page-break-inside properties but I can't figure out how to use them to
  achieve this. I have even tried enclosing the groups in divs with
  page-break-inside set to avoid and that didn't work. I tried setting
  various combinations of before and after avoids with no success.

  I have tried using a tgroup around each group and a tbody around each group,
  again with page-break-inside set to avoid but nothing works.

  Any ideas?

What browser are you testing in? IE has no support for paged media.
Opera supports it but with a few bugs, and Firefox had patchy support
last time I checked.
-- 
Richard Grevers, New Plymouth, New Zealand
Dramatic Design www.dramatic.co.nz
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] Keeping table rows together when printing.

2008-02-22 Thread James Smith
I have a table that looks similar to...

Product Name - Other details
   Order
   Order
   Order
Another Product - Other Details
   Order
Yet Another Product - Other Details
   Order
   Order

When printing I would like the order detail rows to be kept with the product
details and not page break in between (product and order) or (order and
order) but only between (order and product).

I know that css has the page-break-before, page-break-after and
page-break-inside properties but I can't figure out how to use them to
achieve this. I have even tried enclosing the groups in divs with
page-break-inside set to avoid and that didn't work. I tried setting
various combinations of before and after avoids with no success.

I have tried using a tgroup around each group and a tbody around each group,
again with page-break-inside set to avoid but nothing works.

Any ideas?

--
Jay

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.9/1292 - Release Date: 21/02/2008
16:09
 

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/