Comment by swiftcoder
1 day ago
Hilariously, when I hit CMD-P on this specific website, I end up with 4x pages: the first is 80% blank, the 2nd page is fairly nice, the 3rd page contains just the CSS code sample as a thin strip on the left-hand side, and the last page is again mostly blank space...
I also attempted something like this, but only to format my resume[1], since many employers require it to be submitted as a PDF
I've fixed a lot of this now. Ironically, I forgot to check the print output after I added the screenshot in, and it messed with a lot of things.
I see the same thing. It looks like the height of the "My accidental pnmp forkbomb" screenshot is causing it to jump to the second page
One of the lovely things about html/css as print medium, is that interpretation of page break seems to vary between browsers, and while you can use CSS to prevent a particular page break, you can't use CSS to force one inside an element like an img tag
Which browser do you use? Unsurprisingly supporting media print queries hasn't been top priority for some browsers. It makes total sense, but when you suddenly need it for something it does suck.
That was on Safari, but I just tried on Brave (Chromium-based), and the result is pretty similar
I'm looking on Chrome for Windows and it looks just like the web view.
I am with those disagreeing with the original proposal that websites should be printable. There are so many things that go into showing you a web page and so many things that go into preparing that page for print. Even something basic like this isn't consistent.
1 reply →