HTML5 Printview Maintaining text alignment
HTML5 Printview Maintaining text alignment
Hi,
When using HTML5 Print Button the styles are not maintained. Understandable in many cases, however some formatting should be allowed to stay. For example .dt-right and .dt-center.
I have been able to transfer styling from datatable to printview table. Maybe something like this could be an option in future releases? I've added live datatable as example.
http://live.datatables.net/zozagexo/1/edit?html,js,output
Alternative is doing something like this on table generation:
<td><span class="pull-right">£1,210</span></td>
And set stripHtml: false
My jQuery might be a bit messy. If you have any suggestions on better practice, please tell me :)