From ab847ef4b00c3f309b77fa7569c23c1265af7baf Mon Sep 17 00:00:00 2001 From: David Cramer Date: Sun, 13 May 2012 19:22:12 +0000 Subject: [PATCH] Webhelp: Adding print-only css rules --- .../template/common/css/positioning.css | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/xsl/webhelp/template/common/css/positioning.css b/xsl/webhelp/template/common/css/positioning.css index dad43fe73..a087660ed 100644 --- a/xsl/webhelp/template/common/css/positioning.css +++ b/xsl/webhelp/template/common/css/positioning.css @@ -349,3 +349,23 @@ div.note *, div.caution *, div.important *, div.tip *, div.warning * { #content .qandaset>table, #content .qandaset>table td, #content .calloutlist table, #content .calloutlist table td, #content .navfooter table, #content .navfooter table td { border: 0px solid; } + +@media print { + + body * { + visibility: hidden; + } + + #content, #content * { + visibility: visible; + } + + #sidebar, .navfooter { + display: none; + } + + #content { + margin: 0 0 0 0; + } + +} \ No newline at end of file -- 2.40.0