CSS Print Problem
Posted on 2004-10-28
Hi experts, I'm using the following style in a linked CSS where this style limits the max and min width of a table. The problem I'm having is that in print preview and print also, my table width is exceeding the page print area and therefore the whole table content is not being printed.
border:1px solid black;
width: expression((this.parentNode.clientWidth > 950)?950+"px":(this.parentNode.clientWidth <= 750 + 0)?750+"px":"100%")
The questions are how do I restrict my table width for the purpose of printing but maintain the above style for screen viewing and where should style be added to achieve this?