From: <var...@us...> - 2009-08-25 16:30:50
|
Revision: 7088 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7088&view=rev Author: vargenau Date: 2009-08-25 16:30:38 +0000 (Tue, 25 Aug 2009) Log Message: ----------- Class "nobreak" when printing tables Modified Paths: -------------- trunk/pgsrc/Help%2FMediawikiTablePlugin trunk/themes/MonoBook/commonPrint.css Modified: trunk/pgsrc/Help%2FMediawikiTablePlugin =================================================================== --- trunk/pgsrc/Help%2FMediawikiTablePlugin 2009-08-24 18:43:48 UTC (rev 7087) +++ trunk/pgsrc/Help%2FMediawikiTablePlugin 2009-08-25 16:30:38 UTC (rev 7088) @@ -1,4 +1,4 @@ -Date: Thu, 11 Jun 2009 20:56:23 +0000 +Date: Tue, 25 Aug 2009 20:32:21 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124) X-Rcs-Id: $Id$ Content-Type: application/x-phpwiki; @@ -65,6 +65,10 @@ If you specify ##class="sortable"##, the table columns will be sortable. +==== Do not break table when printing + +If you specify ##class="nobreak"##, the table will not be cut when printed (if your browser supports it). + == Examples === Example 1: simple table Modified: trunk/themes/MonoBook/commonPrint.css =================================================================== --- trunk/themes/MonoBook/commonPrint.css 2009-08-24 18:43:48 UTC (rev 7087) +++ trunk/themes/MonoBook/commonPrint.css 2009-08-25 16:30:38 UTC (rev 7088) @@ -54,6 +54,12 @@ h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } +/* Do not cut tables with class "nobreak" */ + +table.nobreak { + page-break-inside: avoid !important; +} + /* Thanks to A List Apart (http://alistapart.com/) for useful extras */ a.stub, a.new{ color:#ba0000; text-decoration:none; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |