88 lines
1.6 KiB
HTML
88 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
/* Setting up the page size - 4x6 inches */
|
|
@page {
|
|
size: 4in 6in;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Force page breaks after each label */
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 4in;
|
|
height: 6in;
|
|
position: relative;
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
|
|
.label-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
padding: 0.25in;
|
|
page-break-after: always; /* Ensures a page break after each label */
|
|
}
|
|
|
|
/* Return address image in top left */
|
|
.return-address {
|
|
position: absolute;
|
|
top: 0.25in;
|
|
left: 0.25in;
|
|
width: 1.5in;
|
|
height: 0.46in;
|
|
}
|
|
|
|
/* Stamp area in top right */
|
|
.stamp-area {
|
|
position: absolute;
|
|
top: 0.25in;
|
|
right: 0.25in;
|
|
width: 1in;
|
|
height: 1in;
|
|
border: 1px dashed #999;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.stamp-text {
|
|
font-size: 8pt;
|
|
color: #999;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Main address centered in the middle */
|
|
.address {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 3in;
|
|
text-align: center;
|
|
font-size: 12pt;
|
|
line-height: 1.5;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="label-container">
|
|
<img src="{{ return_address_path }}" class="return-address" alt="Return Address">
|
|
|
|
<div class="stamp-area">
|
|
<span class="stamp-text">PLACE<br>STAMP<br>HERE</span>
|
|
</div>
|
|
|
|
<div class="address">
|
|
{{ recipient_name }}<br>
|
|
{{ address_line1 }}<br>
|
|
{% if address_line2 %}{{ address_line2 }}<br>{% endif %}
|
|
{{ city }}, {{ state }} {{ zip_code }}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|