Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing page breaks within table rows in IE

Status
Not open for further replies.

Roaders

Programmer
Aug 5, 2001
38
GB
Sorry, forgot to put a subject in the first post!!

Hi Guys.

I am printing a list of tables and I want each table (apart from the first) to start on a new page. I have done this using the style page-break-before : always except in the first table and this works fine.

This table is a border table for another table which has all of the data. I want this inner table to have page breaks between rows not in rows. I have tried page-break-inside : avoid and page-break-before : auto at the same time and separately in the rows and the cells of the table but neither of these work, I still get page breaks in the middle of my rows.

Is there any way I can get the breaks to appear between the rows not in them? I am most concerned about Internet Explorer, if this does work in Netscape it would be nice but I can live with it if it doesn't.

Thanks for your help. Giles Roadnight
messenger: giles_roadnight@hotmail.com
ICQ: 81621370
 
If the table row is very high and it doesn't fit into one paper page, it is logical that it will be broken. It happens usually when there are narrow cells that stretch it's contents through the entire page height.
 
No these aren't tall rows. each table has possibly 10 rows and they are a maximum of about 30 lines tall. I just want each row to appear entire on one page or another.

Of course the row of the border table that the inner table is in will have to be broken.

Thanks for the reply Giles Roadnight
messenger: giles_roadnight@hotmail.com
ICQ: 81621370
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top