Hacker News new | ask | show | jobs
by mattl 1755 days ago
Could be done by wrapping each line of the text in a table and setting the background color of the rows I guess.
1 comments

ooph. with web1.0, you were probably safe making the window fit 800x600, so you could know the max-width (before it existed), and manually do line breaks. otherwise, if the table cells wrapped the text, the illusion would break. the flow would totally suck for copying the text, but that's just a bonusjonus for the DRM crowd. hell, put each word as a new cell in the row, or using a monospace font (could you in web1.0?), and put each character in a cell. nobody would be foolish enough to copy that from your website. webscrapers be damned!
You can wrap text in a <tt> tag for teletype style formatting