Closed Thread Icon

Topic awaiting preservation: page breaks (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8937" title="Pages that link to Topic awaiting preservation: page breaks (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: page breaks <span class="small">(Page 1 of 1)</span>\

 
CRO8
Bipolar (III) Inmate

From: New York City
Insane since: Jul 2000

posted posted 11-07-2003 01:30

I have a loooong page made up of text and bar charts. I am trying to find a way to put a page break before a chart so it doesnt print half on one page and half on another. I found this w3c css info - is this the right direction?

I am not sure how elaborate I have to set up my style sheets (page margins, etc.). I know I need to use:

.pagebreak : {
page-break-after: always;
}

Am I on the right path?

Thanks.
CRO8



[This message has been edited by CRO8 (edited 11-07-2003).]

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 11-08-2003 00:32

I would assume so but I'm not sure it this is supported by IE -- Try printing a demo page and see for yourself, maybe the "auto" value might work better than the "always" one.

Hang on, what's the colon doing in the style rule after the .pagebreak : <- ??

Anyways, the w3schools page explains this css property fairly well: http://www.w3schools.com/css/pr_print_pageba.asp

Edit: stupid fingers

[This message has been edited by Dracusis (edited 11-08-2003).]

CRO8
Bipolar (III) Inmate

From: New York City
Insane since: Jul 2000

posted posted 11-09-2003 20:28

Yup, colon was incorrect, I was typing so quickly . . . I found the solution which works.

p { page-break-before: always }

<p STYLE="page-break-before: always">test text in the paragraph</p>

I will probably want to substitute "table" for "p" since its the charts in the tables I want printed on one page.

Thanks!
CRO8

« BackwardsOnwards »

Show Forum Drop Down Menu