Do not allow table rows to break across pages using css

Post here questions and problems related to editing and publishing DITA content.
dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Do not allow table rows to break across pages using css

Post by dpksaini89 »

How to not allow table rows to break across pages using css
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Do not allow table rows to break across pages using css

Post by Costin »

Hello,

What output format do you need to publish to?
As you mentioned page breaks, I guess you are using PDF.

If that's the case and if you need to use CSS to style the PDF output, you should publish your DITA Maps using the out-of-the-box "DITA Map PDF - WYSIWYG" transformation scenario.
You could use the "page-break-inside" CSS property in a custom .css file, then use the custom CSS as a transformation scenario parameter.
Then, in the DITA Map context, look for the "DITA Map PDF - WYSIWYG" scenario in the available scenarios list from the "Configure Transformation Scenario(s)" dialog, duplicate and edit the copy, then set the "args.css" parameter to point to your custom .css file.
More details available in this page of the User-Guide.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Re: Do not allow table rows to break across pages using css

Post by dpksaini89 »

Thanks done.
Post Reply