Re: [WSG] Page-Break-X

2006-03-17 Thread Rene Saarsoo

Jack Pivac wrote:


on 17/03/06 15:04 R Walker (RMW Web Publishing) said the following:


  Try page-break-inside: avoid; on your divs.


Yeah am using that at the moment but it doesn't seem to do anything...


As much as I have tested, this only seems to work in Opera.

Maybe you should just try to force page-break after every third
office-div (it seems that three of those fit nicely on one page...
especially when you remove the header). Probably adding some
class=third office on the server side and something like:

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

or this might work even better:

.third + div {
page-break-before: always;
}

--

Rene Saarsoo
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] Page-Break-X

2006-03-17 Thread Jack Pivac

on 17/03/06 23:46 Rene Saarsoo said the following:

As much as I have tested, this only seems to work in Opera.

Maybe you should just try to force page-break after every third
office-div (it seems that three of those fit nicely on one page...
especially when you remove the header). Probably adding some
class=third office on the server side and something like:

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

or this might work even better:

.third + div {
page-break-before: always;
}




Cheers Rene,

Yeah pity there is no better/more automatic way to do it.

I should be able to implement a 3rd break pretty easily with a touch of 
php :)


Thanks again everyone,
Jack
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



[WSG] Page-Break-X

2006-03-16 Thread Jack Pivac
Well i've cleaned up my code, and tried using various page-break- rules 
that i've found from google.. but I can't seem to get it doing what I 
need...


http://temp.delphinus.co.nz/office_details_test.html

I would like to put as many office divs as possible on a page, but 
when that div is going to overlap onto a 2nd page I would like the whole 
thing to be on the 2nd page, so the div isn't chopped in half.


Can anyone give me any pointers please?

Kind Regards,
Jack
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] Page-Break-X

2006-03-16 Thread R Walker (RMW Web Publishing)
On 17/03/06, Jack Pivac [EMAIL PROTECTED] wrote:

 I would like to put as many office divs as possible on a page, but
 when that div is going to overlap onto a 2nd page I would like the whole
 thing to be on the 2nd page, so the div isn't chopped in half.

 Can anyone give me any pointers please?


 Try page-break-inside: avoid; on your divs.
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] Page-Break-X

2006-03-16 Thread Jack Pivac

on 17/03/06 15:04 R Walker (RMW Web Publishing) said the following:



 Try page-break-inside: avoid; on your divs.


Yeah am using that at the moment but it doesn't seem to do anything...

Have got

.office {
border: 1px solid gray;
margin: 10px 0;
padding: 5px;
page-break-inside: avoid;
}
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**