Main Menu

page-break-before

Started by Silver, November 24, 2011, 05:38:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Silver

when i use "page-break-before: none;" in css.

Is there a way to prevent the last  table is divided between two pages? (on each page)


Volker Dirr

that depend on the number of tables on your page.

1 table?
use this:
table {
page-break-before: always;
text-align: center;
}
table.modulo2 {

}



2 tables?
use this:
table {
text-align: center;
}
table.modulo2 {
page-break-before: always;
}


3 tables:
no. not possible


4 tables:
only indirectly. increase fontsize and just print 2 tables per page. but select "print 2 pages on the single sheet" in your printersettings. so you get total 4 tables on a page.


check
http://timetabling.de/manual/FET-manual.en.html#id_44
for more information.