This is a discussion on "Css pages and page breaks" within the Web Page Design section. This forum, and the thread "Css pages and page breaks are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Css pages and page breaks
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Css pages and page breaks
Hi.. First time user to this forum.. Usually I use orafans (oracle) and linuxquestions forums.. Anyway.. Startet a bit with css now, and thought this might be the forum for it.
I have to make some reports from database text, so I have made up some blocks. Basically I have [header text] - block 1 [information] - block 2 [text section nr.1 - 1 line to 60 lines long] - block 3 [table 1 - can be 1 to 120 rows long] - block 4 [text section nr.2 - 1 line to 60 lines long] - block 5 [table 2 - can be 1 to 120 rows long] - block 6 I do not know if the user will print the report on A1, A2, A3, A4 or A5 paper, or the american "letter" format for that matter. Basically I want a page break so that the blocks do not split up. If all blocks can fit on a page, fine, let em do that, but I do not want the blocks split up i the middle. That makes em hard for the user to read since it is a lot of info, usually in tiny writting... If I used <p style = "page-break-after:always "> code I might have ended up with reports that where on one line each page... that is not desirable either, and waste paper. So far I have fixed it by making a table for each block which has a fake empty rowspan="999" table column first in the tables making up the block. Using following code:
So to the question: Is it a better way of doing this, that works today, and with most browsers. I don't really care if it is done using css or html, as long as it works (nor does my bosses). 95 % of my workplace use IE so a IE only solution would also be acceptable. Guess I could go to the IT department and ask em to install firefox on all machines... but they probably never will... Is it a no page break command for tables in html maybe? Hope you can help. |
|
|
![]() |
| Tags |
| css, pages, page, breaks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript menu - does not work on title page, but does work on other pages | Crystal Phoenix | Starting Out | 4 | Mar 24th, 2008 19:40 |
| loading pages up with ftp and the index.html page | wemz | Starting Out | 5 | Sep 10th, 2007 21:54 |
| Making all pages repeat the design of the home page | DennisK | Web Page Design | 19 | Nov 17th, 2006 14:50 |
| Fetching files/pages from one 'template' page | The Hick Man | PHP Forum | 2 | Feb 25th, 2006 16:23 |
| Table Column Headings and Page Breaks | Trebz | Web Page Design | 8 | Jun 4th, 2004 12:55 |