I am using jquery.printElement.js to print a calendar table i have created. It is inside a div, and it works mostly as expected. I am having great trouble with my CSS though. As described in my earlier question My cells expand to fit the content, even though I am passing the .css files along.
I have also tried to add table-layout: fixed;
, white-space: nowrap;
and overflow:hidden;
every possible place I can think of. Even as an additional parameter in printBodyOptions:
function printCalendar(){
$('#printable').printElement({
overrideElementCSS:['../css/calendarstyle.css',
'../css/colorbox.css',
'../css/buttonstyle.css'
],
printBodyOptions:{
styleToAdd:
'table-layout:fixed;
overflow:hidden;
white-space: nowrap; !important;'
}
});
}
I am out of ideas, and I kinda hope there is a way to print my calendar as an image, from screenshot, or similar. So that all of the already presented proportions apply to the printed calendar, as well as the presentation on screen. Does anyone know of a way to do this? Are there other, better solutions?