-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprintlabels.html
85 lines (84 loc) · 1.92 KB
/
printlabels.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<title>Label Printer</title>
<style>
* {
box-sizing: border-box;
font-family: 'Lato', sans-serif;
}
html, body {
width: 8.5in;
height: 11in;
background: #FFF;
overflow:visible;
}
body {
margin: 0.5in 0.5in;
}
.row {
width: 8in;
display: flex;
margin: 0;
padding: 0;
justify-content: space-between;
}
.sticker {
border: 1px solid lightgrey;
width: 3.875in;
height: 2in;
padding: 0.1875in;
border-radius: 0.1875in;
overflow: hidden;
resize: none;
margin: 0;
}
.sticker:first-child {
padding-left: 0;
}
.sticker:last-child {
padding-right: 0;
}
@media print {
html, body {
margin: 0;
}
@page {
size: 8.5in 11in;
margin: 0.5in 0.25in;
}
.sticker {
border-color: white;
}
}
</style>
</head>
<body>
<div class="row">
<textarea class="sticker"></textarea>
<textarea class="sticker"></textarea>
</div>
<div class="row">
<textarea class="sticker"></textarea>
<textarea class="sticker"></textarea>
</div>
<div class="row">
<textarea class="sticker"></textarea>
<textarea class="sticker"></textarea>
</div>
<div class="row">
<textarea class="sticker"></textarea>
<textarea class="sticker"></textarea>
</div>
<div class="row">
<textarea class="sticker"></textarea>
<textarea class="sticker"></textarea>
</div>
</body>
</html>