View Full Version : @media print and other questions

08-18-2005, 09:31 AM
I have a long table, that when printed, can sometimes seperate some important row from another. I have recently learned about @media print, and paged media through CSS. I am wondering, is there anything i can do through CSS, to add breaks in the page, or do anything i must, in order to make sure that (for example) row 15 and 16 stay together?

This is quite important. Quick replys are welcomed.


08-18-2005, 10:50 AM
There probably is, but it sounds more like a problem with your markup if you must have 2 rows together.

08-18-2005, 11:39 AM
There are "page-break-before" properties, with values like "always" or "never". There are others as well, that can control windows and orphans, than kinda thing. Have a look here - http://www.w3.org/TR/CSS21/page.html