70 lines
1.3 KiB
HTML
70 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
/* Setting up the page size for DK1201 label - 90x29mm */
|
|
@page {
|
|
size: 90mm 29mm;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Force page breaks after each label */
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 90mm;
|
|
height: 29mm;
|
|
position: relative;
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
|
|
.label-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
padding: 2mm;
|
|
page-break-after: always;
|
|
}
|
|
|
|
/* Main address centered */
|
|
.address {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 85mm;
|
|
text-align: center;
|
|
}
|
|
|
|
.recipient-name {
|
|
font-size: 10pt;
|
|
font-weight: bold;
|
|
margin-bottom: 1mm;
|
|
}
|
|
|
|
.address-line {
|
|
font-size: 9pt;
|
|
line-height: 1.2;
|
|
margin-bottom: 0.5mm;
|
|
}
|
|
|
|
.city-line {
|
|
font-size: 9pt;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="label-container">
|
|
<div class="address">
|
|
<div class="recipient-name">{{ recipient_name }}</div>
|
|
<div class="address-line">{{ address_line1 }}</div>
|
|
{% if address_line2 %}<div class="address-line">{{ address_line2 }}</div>{% endif %}
|
|
<div class="city-line">{{ city }}, {{ state }} {{ zip_code }}</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |