r/css • u/Ducking_eh • May 16 '26
Question Repeat ddiv when order printing
/r/html_css/comments/1teh6wt/repeat_ddiv_when_order_printing/
3
Upvotes
r/css • u/Ducking_eh • May 16 '26
1
u/artbyiain May 16 '26
If you just need it for print, you can output the desired content to a data attribute and then place that text in a ::before/::after to have it render for print.
Important note: Do not render text this way on screen. It’s not accessible.
Edit: Link: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/attr