-
Notifications
You must be signed in to change notification settings - Fork 5
/
inactive-css.html
85 lines (66 loc) · 1.63 KB
/
inactive-css.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<title>Inactive CSS</title>
<style>
.wrapper {
width: 100px;
height: 240px;
border: 1px solid black;
display: flex;
flex-wrap: nowrap;
align-content: center;
gap: 15px;
}
.wrapper > div {
width: 100px;
height: 75px;
background-color: #4285F4;
}
code {
color: red;
}
.hint {
width: 100px;
height: 100px;
border: 1px solid black;
}
</style>
<h1>Inactive CSS</h1>
<h2>align-content example</h2>
<p><code>wrapper</code> class here is using <code>flex-wrap</code>: nowrap property, therefore <code>'align-content'</code> has no effect. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-content">Learn More</a> </p>
<div class="wrapper">
<div></div>
<div></div>
<div></div>
</div>
<h2>Other examples</h2>
<p>Below are other examples of inactive CSS</p>
<div class="hint" style="flex-direction: column; display: block;">
<div></div>
</div>
<div class="hint" style="grid-auto-flow: column dense; display: block;">
<div></div>
</div>
<div class="hint" style="display: block;">
<div style="grid-column: 1 / span 2;"></div>
</div>
<div class="hint" style="display: block; align-items: first baseline;">
<div></div>
</div>
<div class="hint" style="display: block; gap: 100px;">
<div></div>
</div>
<div class="hint" style="display: table-row-group; padding: 20px;">
<div></div>
</div>
<div class="hint" style="position: static; top: 100px;">
<div></div>
</div>
<div class="hint" style="position: static; z-index: 100;">
<div></div>
</div>
<div class="hint">
<div style="z-index: 100;"></div>
</div>
<span class="hint">
test
</span>