-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo6.html
More file actions
44 lines (42 loc) · 1.11 KB
/
demo6.html
File metadata and controls
44 lines (42 loc) · 1.11 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS Grid demo</title>
<style>
html, body{
padding:0; margin:0;
}
.grid-container {
border:1px solid #212121;
display: grid;
grid-template-columns: 6em 1em 6em 1em 6em 1em;
}
.item1{
grid-column-start: 1;
grid-column-end: 5;
}
.item{
background-color: rgba(0, 0, 0, .7);
color:#fff;
padding:8px;
text-align: center;
border:1px solid red;
}
</style>
</head>
<body>
<div class="grid-container">
<div class="item1 item">1</div>
<!-- <div class="item2 item">2</div>
<div class="item3 item">3</div>
<div class="item4 item">4</div>
<div class="item5 item">5</div>
<div class="item6 item">6</div>
<div class="item7 item">7</div>
<div class="item8 item">8</div>-->
</div>
</body>
</html>