-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss-reference.html
More file actions
227 lines (111 loc) · 35.9 KB
/
css-reference.html
File metadata and controls
227 lines (111 loc) · 35.9 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Chrome, Firefox OS and Opera Status Bar Color -->
<meta name="theme-color" content="#FFFFFF">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/katex.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.19.0/themes/prism.min.css">
<link rel="stylesheet" type="text/css" href="css/SourceSansPro.css">
<link rel="stylesheet" type="text/css" href="css/theme.css">
<link rel="stylesheet" type="text/css" href="css/notablog.css">
<!-- Favicon -->
<link rel="shortcut icon" href="https://www.notion.so/signed/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fb4ff1495-8a8b-46f5-8711-c7f543189df5%2F25fa6848-650b-47c0-8e33-65b7d63324b1%2Fshape2-1_rounded_corner.png?table=collection&id=7594986e-09be-4821-a107-14c738674417">
<style>
:root {
font-size: 20px;
}
</style>
<title>The Power of CSS | My name is Alex.</title>
<meta property="og:type" content="blog">
<meta property="og:title" content="The Power of CSS">
<meta name="description" content="My CSS reference.">
<meta property="og:description" content="My CSS reference.">
<meta property="og:image" content="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text text-anchor=%22middle%22 dominant-baseline=%22middle%22 x=%2250%22 y=%2255%22 font-size=%2280%22>🔥</text></svg>">
<style>
.DateTagBar {
margin-top: 1.0rem;
}
</style>
</head>
<body>
<nav class="Navbar">
<a href="index.html">
<div class="Navbar__Btn">
<span><img class="inline-img-icon" src="https://www.notion.so/signed/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fb4ff1495-8a8b-46f5-8711-c7f543189df5%2F25fa6848-650b-47c0-8e33-65b7d63324b1%2Fshape2-1_rounded_corner.png?table=collection&id=7594986e-09be-4821-a107-14c738674417"></span>
<span>Home</span>
</div>
</a>
<span class="Navbar__Delim">·</span>
<a href="notablog.html">
<div class="Navbar__Btn">
<span><img class="inline-img-icon" src="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text text-anchor=%22middle%22 dominant-baseline=%22middle%22 x=%2250%22 y=%2255%22 font-size=%2280%22>📝</text></svg>"></span>
<span>Notablog</span>
</div>
</a>
<span class="Navbar__Delim">·</span>
<a href="jade.html">
<div class="Navbar__Btn">
<span><img class="inline-img-icon" src="https://www.notion.so/signed/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F93bed342-3c61-4ff4-b1bf-83dd6fa09fdd%2Ficon_512w.png?table=block&id=65166b73-3337-4374-b13b-040ca1599593"></span>
<span>Jade</span>
</div>
</a>
<span class="Navbar__Delim">·</span>
<a href="now.html">
<div class="Navbar__Btn">
<span><img class="inline-img-icon" src="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text text-anchor=%22middle%22 dominant-baseline=%22middle%22 x=%2250%22 y=%2255%22 font-size=%2280%22>🎯</text></svg>"></span>
<span>Now</span>
</div>
</a>
<span class="Navbar__Delim">·</span>
<a href="library.html">
<div class="Navbar__Btn">
<span><img class="inline-img-icon" src="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text text-anchor=%22middle%22 dominant-baseline=%22middle%22 x=%2250%22 y=%2255%22 font-size=%2280%22>📚</text></svg>"></span>
<span>Library</span>
</div>
</a>
<span class="Navbar__Delim">·</span>
<a href="about.html">
<div class="Navbar__Btn">
<span><img class="inline-img-icon" src="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text text-anchor=%22middle%22 dominant-baseline=%22middle%22 x=%2250%22 y=%2255%22 font-size=%2280%22>👤</text></svg>"></span>
<span>About</span>
</div>
</a>
</nav>
<header class="Header">
<div class="Header__Spacer Header__Spacer--NoCover">
</div>
<div class="Header__Icon">
<span><img class="inline-img-icon" src="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text text-anchor=%22middle%22 dominant-baseline=%22middle%22 x=%2250%22 y=%2255%22 font-size=%2280%22>🔥</text></svg>"></span>
</div>
<h1 class="Header__Title">The Power of CSS</h1>
<div class="DateTagBar">
<span class="DateTagBar__Item DateTagBar__Date">Posted on Wed, Jul 24, 2019</span>
<span class="DateTagBar__Item DateTagBar__Tag DateTagBar__Tag--gray">
<a href="tag/Note.html">Note</a>
</span>
<span class="DateTagBar__Item DateTagBar__Tag DateTagBar__Tag--blue">
<a href="tag/Web.html">Web</a>
</span>
<span class="DateTagBar__Item DateTagBar__Tag DateTagBar__Tag--yellow">
<a href="tag/CSS.html">CSS</a>
</span>
</div>
</header>
<article id="https://www.notion.so/85c542c32ff8478cbe51914a79cb6824" class="PageRoot"><div id="https://www.notion.so/a1dd1a3afcfc4452b33a0091f492e05a" class="ColorfulBlock ColorfulBlock--ColorDefault Text"><p class="Text__Content"><span class="SemanticStringArray"><span class="SemanticString">Here are some resource I think useful based on my experience.</span></span></p></div><h3 id="https://www.notion.so/3b85c56875124a80a6ebb9655ce7e170" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/3b85c56875124a80a6ebb9655ce7e170"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://www.w3schools.com/cssref/css_selectors.asp">Selectors</a></span></span></h3><h3 id="https://www.notion.so/da84ce516c3f4bec9a16a775fd2c42e6" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/da84ce516c3f4bec9a16a775fd2c42e6"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://www.w3schools.com/cssref/css_units.asp">Units</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/2ec0969209094c37a584b03275057b89" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">%</code></span><span class="SemanticString"> : When use in </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">width</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">margin</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">padding</code></span><span class="SemanticString">, it means the percent relative to the </span><span class="SemanticString"><strong class="SemanticString__Fragment SemanticString__Fragment--Bold">width</strong></span><span class="SemanticString"> of the containing block.</span></span></li></ul><h3 id="https://www.notion.so/c43b0c0237724cd394ce9f4d425030fc" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/c43b0c0237724cd394ce9f4d425030fc"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://www.w3schools.com/cssref/css_functions.asp">Functions</a></span></span></h3><h3 id="https://www.notion.so/38c3e9b8b6bb48c7b019e3ef3e8cce9c" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/38c3e9b8b6bb48c7b019e3ef3e8cce9c"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/font">font</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/73babf06e2b74bc3a3a3dc538860ce61" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Frequently used (Sort by frequency) : </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">font-size</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">font-family</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">line-height</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">font-weight</code></span><span class="SemanticString">.</span></span></li><li id="https://www.notion.so/f1525a93b9654c3b9a94b6364b4f4739" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Interesting (Sort by interest) : </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">font-variant</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">font-style</code></span><span class="SemanticString">.</span></span></li></ul><h3 id="https://www.notion.so/475f84688a0b4765bf648dcc49b25e70" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/475f84688a0b4765bf648dcc49b25e70"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Text">Text</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/6acbe67523e04b1a8365b53b8a6bf78e" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Frequently used (Sort by frequency) : </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">word-break</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">text-align</code></span><span class="SemanticString">.</span></span></li><li id="https://www.notion.so/9b274fde32c54598b32bf8f3ab9e3a7f" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Interesting (Sort by interest) : </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">letter-spacing</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">word-spacing</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">text-indent</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">text-transform</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">white-space</code></span><span class="SemanticString">.</span></span></li></ul><h3 id="https://www.notion.so/f07064677d3940a3a6dbb51700f3fd3a" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/f07064677d3940a3a6dbb51700f3fd3a"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/color">Color</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/13833d4374a54d06a120b84a1ef03684" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">color</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">background-color</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">opacity</code></span><span class="SemanticString">.</span></span></li><li id="https://www.notion.so/3ddff1121d5f4957949e8592811963c1" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">rgb()</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">rgba()</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">hsl()</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">hsla()</code></span><span class="SemanticString">.</span></span></li></ul><h3 id="https://www.notion.so/3c7531c6a81a47f88b96a0f4c06f7b3d" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/3c7531c6a81a47f88b96a0f4c06f7b3d"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Images">Image</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/f2c92dea16524fc3808da879d8cff068" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Frequently used (Sort by frequency) : </span><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit"><code class="SemanticString__Fragment SemanticString__Fragment--Code">object-fit</code></a></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">background-image</code></span><span class="SemanticString">.</span></span></li><li id="https://www.notion.so/48f7d2d4174b4b8fba94aa3ac690adee" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Interesting (Sort by interest) : </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">background</code></span><span class="SemanticString"> - </span><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient"><code class="SemanticString__Fragment SemanticString__Fragment--Code">linear-gradient()</code></a></span><span class="SemanticString">, </span><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/radial-gradient"><code class="SemanticString__Fragment SemanticString__Fragment--Code">radial-gradient()</code></a></span><span class="SemanticString">.</span></span></li></ul><h3 id="https://www.notion.so/54eac76b20e448e19bdaa489d6ecb967" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/54eac76b20e448e19bdaa489d6ecb967"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters">List</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/fc48ef4c08e54228ba700af6c5b0c170" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Frequently used (Sort by frequency) : </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">list-style</code></span><span class="SemanticString">.</span></span></li></ul><h3 id="https://www.notion.so/9429cd6101e8451681db62112cdb035a" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/9429cd6101e8451681db62112cdb035a"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://www.w3schools.com/css/css_boxmodel.asp">Box Model</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/8d3ce7944a234f298cc22669b5312fdf" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Understand </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">width</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">height</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">overflow</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">margin</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">padding</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">border</code></span><span class="SemanticString">.</span></span></li><li id="https://www.notion.so/1a9c4d27bd504df182b48d457ead9708" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">box-sizing</code></span><span class="SemanticString"> : Read </span><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing">this</a></span><span class="SemanticString"> to understand the difference between </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">border-box</code></span><span class="SemanticString"> and </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">content-box</code></span><span class="SemanticString">.</span></span></li><li id="https://www.notion.so/421ea0a3d58e4124aec65d599cbc2543" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Get the concept of </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">max-width</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">min-width</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">max-height</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">min-height</code></span><span class="SemanticString">.</span></span></li><li id="https://www.notion.so/7cd017e6ef3743ce824851b79fd538fc" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Interesting : </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">box-shadow</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">border-radius</code></span><span class="SemanticString">, </span><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://www.w3schools.com/css/css_outline.asp"><code class="SemanticString__Fragment SemanticString__Fragment--Code">outline</code></a></span><span class="SemanticString">.</span></span></li><li id="https://www.notion.so/859d7e4db9df484e921422279deca6f9" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">display: none</code></span><span class="SemanticString"> vs </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">visibility: hidden</code></span><span class="SemanticString">.</span></span></li></ul><h3 id="https://www.notion.so/323a56e63c28433787c4f52f567ad34a" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/323a56e63c28433787c4f52f567ad34a"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">position</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/3fe3f975708b40de93cebc1c15df67ae" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">static</code></span><span class="SemanticString"> : Default. Normal position.</span></span></li><li id="https://www.notion.so/5c5642ff3bfc4d65b86b8fd5f5a240d8" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">relative</code></span><span class="SemanticString"> : Relative to normal position. Using </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">top</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">right</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">bottom</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">left</code></span><span class="SemanticString"> to set the offsets. Space is created for the element.</span></span></li><li id="https://www.notion.so/5e02a3a8bc054d90b5bb2b9bd9b0a092" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">absolute</code></span><span class="SemanticString"> : Relative to its closest positioned ancestor. Using </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">top</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">right</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">bottom</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">left</code></span><span class="SemanticString"> to set the offsets. Space is </span><span class="SemanticString"><strong class="SemanticString__Fragment SemanticString__Fragment--Bold">NOT</strong></span><span class="SemanticString"> created for the element.</span></span></li><li id="https://www.notion.so/0b47b6b9b0eb4438ba1f2e8bdea7e787" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">fixed</code></span><span class="SemanticString"> : Relative to the viewport. Using </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">top</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">right</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">bottom</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">left</code></span><span class="SemanticString"> to set the offsets. Space is </span><span class="SemanticString"><strong class="SemanticString__Fragment SemanticString__Fragment--Bold">NOT</strong></span><span class="SemanticString"> created for the element.</span></span></li><li id="https://www.notion.so/09dfb2b9654e49a18fc947eefe1f49ec" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">sticky</code></span><span class="SemanticString"> : Looks like </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">static</code></span><span class="SemanticString"> at first, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">absolute</code></span><span class="SemanticString"> or </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">fixed</code></span><span class="SemanticString"> when scrolling over a threshold. Relative to its nearest scrolling ancestor. Space is created for the element.</span></span></li><li id="https://www.notion.so/8af57d2fdabf4f0480bb11122d229248" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">z-index</code></span><span class="SemanticString"> : Decide how elements are layered when they overlap.</span></span></li></ul><h3 id="https://www.notion.so/646a0bbf3c864acca1efe86a7f0f82d2" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/646a0bbf3c864acca1efe86a7f0f82d2"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/float">float</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/f98e69e3e871419e99ab53758501ea18" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">none</code></span><span class="SemanticString"> : Default.</span></span></li><li id="https://www.notion.so/c112a80c0a0c4499ab19f1cb86986fd9" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">left</code></span><span class="SemanticString">, </span><span class="SemanticString"><code class="SemanticString__Fragment SemanticString__Fragment--Code">right</code></span><span class="SemanticString"> : Places an element on the left or right side of its container, allowing </span><span class="SemanticString"><strong class="SemanticString__Fragment SemanticString__Fragment--Bold">text</strong></span><span class="SemanticString"> and </span><span class="SemanticString"><strong class="SemanticString__Fragment SemanticString__Fragment--Bold">inline</strong></span><span class="SemanticString"> elements to wrap around it.</span></span></li><li id="https://www.notion.so/c6a13442dbd14c98bfd9f5edbfe35be2" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/clear"><code class="SemanticString__Fragment SemanticString__Fragment--Code">clear</code></a></span><span class="SemanticString"> : An element must be moved below floating elements before it.</span></span></li></ul><h3 id="https://www.notion.so/ef97a1a2584f4ab1bc9fad50a67c579a" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/ef97a1a2584f4ab1bc9fad50a67c579a"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/">flexbox</a></span></span></h3><h3 id="https://www.notion.so/96d0481efe154fdb9f0387266bcffd28" class="ColorfulBlock ColorfulBlock--ColorDefault Heading Heading--3"><a class="Anchor" href="#https://www.notion.so/96d0481efe154fdb9f0387266bcffd28"><svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><span class="SemanticStringArray"><span class="SemanticString"><a class="SemanticString__Fragment SemanticString__Fragment--Link" href="https://developer.mozilla.org/zh-TW/docs/Web/CSS/cursor">cursor</a></span></span></h3><ul class="BulletedListWrapper"><li id="https://www.notion.so/c448104fbb094546a5e798fb0ff75212" class="BulletedList"><span class="SemanticStringArray"><span class="SemanticString">Set this to change your cursor when hovering an element.</span></span></li></ul></article>
<script src="https://utteranc.es/client.js" repo="dragonman225/dragonman225.github.io"
issue-term="pathname" theme="github-light" crossorigin="anonymous" async></script>
<footer class="Footer">
<div>© My name is Alex. 2019-2024</div>
<div>·</div>
<div>Powered by <a href="https://github.com/dragonman225/notablog" target="_blank"
rel="noopener noreferrer">Notablog</a>.
</div>
</footer>
</body>
</html>