Print pdf page breaks

2 views
Skip to first unread message

Ben Brawn

unread,
Oct 1, 2025, 7:08:21 PM (9 days ago) Oct 1
to Numbas Users
Not a huge deal, but I notice that if a student prints their results to pdf, sometimes the page breaks are put at a point that means words are over two pages (top half on one page, and bottom half on the next). Apparently thats a standard thing that happens but maybe can be fixed by using "a CSS media query targeting print conditions"

For example

Split over two pages.PNG
and Heading split over two pages.PNG

Cheers
Ben



Christian Lawson-Perfect

unread,
Oct 2, 2025, 7:54:24 AM (8 days ago) Oct 2
to numbas...@googlegroups.com
Arg, I hate this kind of bug!
The majority of the time, the problem is that browsers can't break inside elements that use grid or flex layout. But as far as I can see, that's not the case here. I'll try my best to work out what's wrong.

--
You received this message because you are subscribed to the Google Groups "Numbas Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numbas-users...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/numbas-users/ec702cc4-596e-4e99-8ad8-0c9ba8410d89n%40googlegroups.com.

Christian Lawson-Perfect

unread,
Oct 2, 2025, 8:55:42 AM (8 days ago) Oct 2
to numbas...@googlegroups.com
Fixed! 
It turned out there was indeed a grid layout hiding in there, as well as a `container-type` rule which seems to also prevent page breaks.
Reply all
Reply to author
Forward
0 new messages