Page 1 of 1
Do not allow table rows to break across pages using css
Posted: Fri Apr 27, 2018 10:04 am
by dpksaini89
How to not allow table rows to break across pages using css
Re: Do not allow table rows to break across pages using css
Posted: Fri Apr 27, 2018 11:50 am
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
Re: Do not allow table rows to break across pages using css
Posted: Fri Apr 27, 2018 2:45 pm
by dpksaini89
Thanks done.