This is probably going to be easier to demonstrate than to explain, so here we go:
http://www.penguinking.com/files/xml/example.xml
http://www.penguinking.com/files/xml/example.css
http://www.penguinking.com/files/xml/example.pdf
(I apologise for the somewhat messy CSS - it's a work in progress. :? )
What I'm trying to do is create a stylesheet whereby sidebars - of the type shown in the example PDF - won't break across multiple pages. If there's not enough room for them in the remainder of the current page, they should be bumped to the next page. It can be assumed that no sidebar will exceed a full page in length.
I can't figure out how to do it. If I use "page-break-inside: avoid", it bumps the sidebar to the next page as expected, but it also bumps everything following the sidebar as well (which is also to be expected, if I understand the rules that apply to these things correctly).
Is there a way to do what I'm looking for?
Thanks,
- Dave.
http://www.penguinking.com/files/xml/example.xml
http://www.penguinking.com/files/xml/example.css
http://www.penguinking.com/files/xml/example.pdf
(I apologise for the somewhat messy CSS - it's a work in progress. :? )
What I'm trying to do is create a stylesheet whereby sidebars - of the type shown in the example PDF - won't break across multiple pages. If there's not enough room for them in the remainder of the current page, they should be bumped to the next page. It can be assumed that no sidebar will exceed a full page in length.
I can't figure out how to do it. If I use "page-break-inside: avoid", it bumps the sidebar to the next page as expected, but it also bumps everything following the sidebar as well (which is also to be expected, if I understand the rules that apply to these things correctly).
Is there a way to do what I'm looking for?
Thanks,
- Dave.