-
Notifications
You must be signed in to change notification settings - Fork 15
/
grid-flow-images-space.html
executable file
·44 lines (41 loc) · 1.41 KB
/
grid-flow-images-space.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Giving images more track space</title>
<link rel="stylesheet" type="text/css" href="c/grid-baseline.css">
<style type="text/css">
#grid {display: grid;
grid-template-rows: repeat(4, 50px);
grid-template-columns: repeat(4, 50px);
grid-auto-rows: 50px;
grid-auto-columns: 50px;
}
img {grid-row: auto; grid-column: auto;}
img {width: 50px; height; 50px; border: 1px solid silver; box-sizing: border-box;}
img.wide {width: 90px; height: 50px;}
img.tall {width: 50px; height: 90px;}
img.big {width: 90px; height: 90px;}
img.wide {grid-column: auto / span 2;}
img.tall {grid-row: auto / span 2;}
img.big {grid-row: auto / span 2; grid-column: auto / span 2;}
</style>
</head>
<body>
<div id="grid">
<img src="i/yinyang.png" alt="" class="">
<img src="i/yinyang.png" alt="" class="wide">
<img src="i/yinyang.png" alt="" class="">
<img src="i/yinyang.png" alt="" class="tall">
<img src="i/yinyang.png" alt="" class="">
<img src="i/yinyang.png" alt="" class="">
<img src="i/yinyang.png" alt="" class="big">
<img src="i/yinyang.png" alt="" class="wide">
<img src="i/yinyang.png" alt="" class="">
<img src="i/yinyang.png" alt="" class="">
<img src="i/yinyang.png" alt="" class="">
<img src="i/yinyang.png" alt="" class="">
</div>
</body>
</html>