Hello,
I am wondering if anyone has come across a way to print Labels Using HTML and CSS. To do this, it is very important to get a page break and I can not find a reliable way to break a page. I would appreciate any suggestions you may come up with. Thanks.
You do not have to worry about a page break. For example:
1" x 4" labels, 2 columns, 10 rows, 20 labels per page (Avery 5161). Just use inches for your css layout and when you have more than 20 labels it will automatically start a new page.
Some of this relies on browser compatibility with CSS specs and printer setup.
I realize HTML is your goal but you may want to consider labels generated as PDF files via apps like that from fpdf.org to ensure consistent output from Adobe Reader.
Your fpdf solution was EXACTLY what I was looking for. I could not get the page break to work on different printers. You are truely a lifesaver, thank you again!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.