-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmosaic.html
58 lines (58 loc) · 1.31 KB
/
mosaic.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid Lines</title>
<style>
body {
text-align: center;
color: #fff;
}
#content {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-auto-rows: minmax(150px, auto);
margin: 0 auto;
grid-gap: 10px;
max-width: 960px;
}
#content div {
background: green;
padding: 30px;
}
.one {
grid-column: 1/3;
grid-row: 1/5;
}
.two {
grid-column: 3/7;
grid-row: 1/3;
}
.three {
grid-column: 3/5;
grid-row: 3/5;
}
.four {
grid-column: 5/7;
grid-row: 3/7;
}
.five {
grid-column: 1/5;
grid-row: 5/7;
}
#content {
transform: rotateZ(45deg) scale(0.7);
}
</style>
</head>
<body>
<div id="content">
<div class="one">1</div>
<div class="two">2</div>
<div class="three">3</div>
<div class="four">4</div>
<div class="five">5</div>
</div>
</body>
</html>