-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathdimensions-010-print-ref.html
51 lines (51 loc) · 1.28 KB
/
dimensions-010-print-ref.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
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
@page {
size: 650px 500px;
margin: 0;
}
:root {
print-color-adjust: exact;
}
body {
margin: 0;
}
.grid {
display: grid;
grid-template-columns: 100px auto 100px;
grid-template-rows: 100px auto 100px;
height: 100vh;
}
.vertical-edge {
display: flex;
}
.horizontal-edge {
display: flex;
flex-flow: column;
}
</style>
<div class="grid">
<div class="corner"></div>
<div class="vertical-edge">
<div style="width:150px; background:hotpink;"></div>
<div style="width:150px; background:cyan;"></div>
<div style="width:150px; background:yellow;"></div>
</div>
<div class="corner"></div>
<div class="horizontal-edge">
<div style="height:100px; background:yellow;"></div>
<div style="height:100px; background:cyan;"></div>
<div style="height:100px; background:hotpink;"></div>
</div>
<div></div>
<div class="horizontal-edge">
<div style="height:300px; background:cyan;"></div>
</div>
<div class="corner"></div>
<div class="vertical-edge">
<div style="width:225px; background:hotpink;"></div>
<div style="width:225px; background:yellow;"></div>
</div>
<div class="corner"></div>
</div>