Forum How do I...?

Changing Column Counts for Some Pages and Targeting Specific Page Numbers

sam23
Hey there, thanks for the awesome work on Prince!

I am wondering if Prince is capable of changing column counts for specific pages. I am looking to oscillate between 3 and 2 columns for pages. I am also wondering how to target specific page numbers with a different @page layout, is that possible?

Thanks so much!

mikeday
You can use @page:nth(1), @page:nth(2) etc. to change page settings for numbered pages. However, you cannot change the number of columns on a per page basis; currently in CSS the page settings can't influence the box layout in this way.
sam23
OK cheers! The nth(page number) will still come in handy for me. :)

I had a read a post from some time ago were someone else asked about applying column count in an at @page declaration and you had mentioned this may be coming soon as a feature. Is that on the radar at all for future releases?

Thanks again!
mikeday
Yes, it is something we would like. But it's too early to say when, at this point, with so many other things to do.