Forum How do I...?

Keep block together in a column

golsby
I am working on a student directory for my son's elementary school. For each class there are a list of students. Each student looks something like:

Student Name
Address
City, State ZIP
Mobile: (206) 111-2222
Home: (206) 111-2222

I'd like to have each group of information stay together, but get wrapped into three columns.

With my current style sheet, sometimes a column wrap happens in the middle of the info block. How can I prevent this?

My current document is HTML+CSS, but I'm happy to toss in JS if that will help. I'm comfortable writing JS, but have no idea what to write in this case.

Thanks in advance for your help - Prince seems to be totally awesome for this job.

- Brian
golsby
I managed to find another post on this forum where the "page-break-inside: avoid" was shown to do double-duty as a "column-break-inside: avoid". I tried it, and the blocks are staying together reliably now.

I am very impressed with Prince XML - thank you!

- Brian