-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfractional_unit.html
46 lines (42 loc) · 928 Bytes
/
fractional_unit.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
<!DOCTYPE html>
<html>
<head>
<title>CSS Grid</title>
<style>
body {
margin-top: 40px;
}
#container {
width: 800px;
margin: auto;
background: #e3e3e3;
display: grid;
/* grid-template-columns: 100px 100px 1fr; */
/* grid-template-columns: 100px 2fr 1fr; */
grid-template-columns: repeat(3, 1fr);
/* grid-template-columns: repeat(3, 100px); */
grid-template-rows: repeat(3, 50px);
grid-gap: 1em;
}
#container > div {
background: #999;
font-weight: bold;
color: white;
font-family: sans-serif;
}
</style>
</head>
<body>
<section id="container">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
</section>
</body>
</html>