-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweek7_gridact.html
40 lines (38 loc) · 1.29 KB
/
week7_gridact.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="week7_gridstyles.css">
</head>
<body>
<h2>Example 1</h2>
<p>Justify-content and align-content do not work since the grid is as
big as the parent element.</p>
<div class="content1">
<div class="red"></div>
<div class="green"></div>
<div class="yellow"></div>
<div class="blue"></div>
</div>
<h2>Example 2</h2>
<p>Justify-items and align-items do not work since the contents are as
big as the grid cell they are in.</p>
<div class="content2">
<div class="red2"></div>
<div class="green2"></div>
<div class="yellow2"></div>
<div class="blue2"></div>
</div>
<h2>Example 3</h2>
<p>Both justify-content and align-content, and justify-items and
align-items work.</p>
<div class="content3">
<div class="red"></div>
<div class="green"></div>
<div class="yellow"></div>
<div class="blue"></div>
</div>
</body>
</html>