News for hackers. Stuff that matters.
Re:CSS for printing to paper by voussoir on Monday March 04, 2024 @12:37AM (#39587334)
Wow, great use of the attr function, thank you!
Re:CSS for printing to paper by euroderf on Monday March 04, 2024 @04:19AM (#39588484)
would recommend printing URLs in a very narrow font so they don't eat up the entire page
Re:CSS for printing to paper by trumbitta2 on Monday March 04, 2024 @04:14AM (#39588450)
That's a pretty common Accessibility best practice for print CSS!
Re:CSS for printing to paper by account42 on Monday March 04, 2024 @08:09AM (#39590012)
Shouldn't this be an option in the browser print dialog instead?
Re:CSS for printing to paper by withinboredom on Monday March 04, 2024 @05:51PM (#39597227)
No
Re:CSS for printing to paper by account42 on Tuesday March 05, 2024 @03:23AM (#39600698)
Great argument.
Re:CSS for printing to paper by withinboredom on Tuesday March 05, 2024 @03:31AM (#39600758)
They asked a yes/no question. In the spirit of HN pedantic comments, I answered their question fully.
Re:CSS for printing to paper by mapreduce on Monday March 04, 2024 @06:42AM (#39589280)
If the anchor tag already has the URL as text, then will the URL be printed twice?

Like if I've got

  <a href="https://www.google.com/">https://www.google.com/</a>
Will it print like this?

  https://www.google.com (https://www.google.com)
Re:CSS for printing to paper by yawpitch on Monday March 04, 2024 @09:11AM (#39590699)
Based on the above, yes.