Am 29.03.2011 15:11 schrieb Barney Carroll:
The problem is that jQuery dynamically introduces styles properties
per-element and attaches them via the object's style attribute. You
could over-ride this with !important print rules though.
Cool! I was not aware of the fact that !important is powerful enough to
override style attributes.
If you don't already have a print-only stylesheet, add it like so:
<link rel="stylesheet" media="print" href="…"/>
I personnally prefer an @media print block in the stylesheet document,
as it has better support in legacy IEs.
This CSS should nullify the jQuery effects (allowing the table to
assume its necessary height):
.tablescroll_wrapper {
height: auto !important;
overflow: visible !important;
}
.tablescroll_body {
width: auto !important;
}
Thank you very much, this is what I was looking for! It makes the print
output not perfect (as the scroller script separates the table header
from the body, thus column widths differ, and the header is not repeated
at pages 2 and following), but absolutely usable for those who press
CTRL-P instead of clicking the link to the separate print version of the
page.
Am 29.03.2011 16:42 schrieb HallMarc Websites:
> Ok first for IE 9 the jquery 1.5 is not working. They are aware of
this bug and the fix for now is to roll back to 1.4.4 for the scroller
to work in IE 9.
Thank you for this advice which for sure saved me quite some debugging
and researching time!
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/