Confine code to a set dimension for print
<p>I've grabbed this template for use on a website I'm trying to sort out, and I'm needing to allow it to print to a set dimension to work with my label printer. (62x90mm). Here is the code I have but I'm having difficulties making it match the 62x90mm dimensions as described above.</p>

<pre><code>{% if shipping_address %}
&lt;div style="padding: 1.5em; border: 1px solid black;"&gt;
&lt;h2 style="margin: 0 0 1em 0;"&gt;Recipient&lt;/h2&gt;
&lt;strong&gt;{{ shipping_address.name }}&lt;/strong&gt;&lt;br/&gt;
{% if shipping_address.company %}
{{ shipping_address.company }}&lt;br/&gt;
{% endif %}
{{ shipping_address.street }}&lt;br/&gt;
{{ shipping_address.city }} {{ shipping_address.province_code }} {{ shipping_address.zip | upcase }}&lt;br/&gt;
{{ shipping_address.country }}
&lt;/div&gt;
{% endif %}
</code></pre>

<p>Now changed it to this: </p>

<pre><code>{% if shipping_address %}
&lt;div style="padding: 1.5em; border: 1px solid black; height: 210px; width: 320px; font-size: 20px"&gt;
&lt;h2 style="margin: 0 0 0.2em 0;"&gt;Send To&lt;/h2&gt;
&lt;strong&gt;{{ shipping_address.name }}&lt;/strong&gt;&lt;br/&gt;
{% if shipping_address.company %}
{{ shipping_address.company }}&lt;br/&gt;
{% endif %}
{{ shipping_address.street }}&lt;br/&gt;
{{ shipping_address.city }}
{{ shipping_address.province_code }}&lt;br/&gt;
{{ shipping_address.zip | upcase }}&lt;br/&gt;
{{ shipping_address.country }}
&lt;/div&gt;
{% endif %}
</code></pre>

<p>It gives a visual output like this : <a href="https://i.imgur.com/EsJy6fs.png" rel="nofollow noreferrer">https://i.imgur.com/EsJy6fs.png</a></p>

<p>But it prints on two pieces of label (62X90mm) with the name and first line of the address on the one piece, followed by the City, Postcode and Country.</p>