How do I convert inch to pixel?


First of all, I am talking about HTML.

My client asked me to make a form that he is going to print with a thermo printer. He told me that the thermo printer uses 4×6” papers. What width and height should I use on CSS?


You can use inch in your (print) CSS:

#foo { width: 5in; height: 3in; }

See length units in CSS.

Answered By – stesch

Answer Checked By – David Goodson (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.