-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathindex.html
406 lines (350 loc) · 9.92 KB
/
index.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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Tables and CSS</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<!-- Top instructions -->
<div id="topinfo"></div>
<!-- footer instructions -->
<div id="info">
<p><a href="http://standardista.com">Estelle Weyl</a> | <a href="http://twitter.com/estellevw">@estellevw</a> | <a href="http://github.com/estelle">Github</a> | Press <span class="key">→</span> to advance, <span class="key">2</span> for comments, <span class="key">4</span> to read/write notes.</p>
</div>
<div id="presentation">
<div id="presentation-counter"></div>
<div id="slides">
<div class="slide intro">
<header>
<h1>HTML Tables & CSS</h1>
</header>
</div>
<!-- -->
<div class="slide">
<header><h1>Table Purpose</h1></header>
<section class="content">
<p>Presentation of Data</p>
<ul>
<li>Presenting</li>
<li>Comparing</li>
<li>Sorting</li>
<li>Calculating</li>
<li>Cross Referencing</li>
</ul>
<p>NOT for presentation</p>
</section>
</div>
<!-- -->
<div class="slide">
<header><h1>Structure of a Table</h1></header>
<section class="content">
<pre contenteditable><strong><table></strong>
<strong><caption></strong></caption>
<strong><colgroup></strong>
<strong><col/></strong>
</colgroup>
<strong><thead></strong>
<tr>
<th></th>
</tr>
</thead>
<strong><tbody></strong>
<tr>
<td></td>
</tr>
</tbody>
<strong><tfoot></strong>
<tr>
<th></th>
</tr>
</tfoot>
</table></pre>
</section>
</div>
<div class="slide">
<header><h1>Structure of a Table</h1></header>
<section class="content">
<pre contenteditable><table>
<caption>Table Caption</caption>
<colgroup>
<col/>
</colgroup>
<thead></thead>
<tbody></tbody>
<tfoot></tfoot>
</table></pre>
</section>
</div>
<!-- caption -->
<div class="slide intro">
<header><h1>Captions</h1></header>
<section class="content">
</section>
</div>
<!-- Table Caption -->
<div class="slide">
<header><h1>Caption</h1></header>
<section class="content">
<ul>
<li>Specifies the title of table</li>
<li>Always the first child of a <table></li>
<li>Can be positioned on top or bottom with <code>caption-side</code></li>In FF, can be top, bottom, left or right of table</li>
<li>Can be styled</li>
<li>CSS: Inherits from <code>table</code></li>
</ul>
</section>
</div>
<!-- cpation side -->
<div class="slide">
<header><h1><code>caption-side</code> property</h1></header>
<section class="content" style="overflow-y: scroll; max-height: 80vh">
<p>Put on the <code><table></code>, not the <code><caption></code>.</p>
<p>supported</p><pre>caption-side: top;
caption-side: bottom;</pre>
<p>Experimental</p>
<pre>caption-side: left;
caption-side: right;
caption-side: top-outside;
caption-side: bottom-outside;</pre>
<p>In the specification</p>
<pre>caption-side: inline-start;
caption-side: inline-end;</pre>
<p>deprecated:</p>
<pre><table align="left | top | right | bottom"></pre>
</section>
</div>
<!-- caption side -->
<div class="slide object">
<header><h1><code>caption-side</code> property</h1></header>
<object data="files/captionside.html"></object>
</div>
<!-- style the caption -->
<div class="slide object">
<header><h1><code><caption></code> styling</h1></header>
<object data="files/caption.html"></object>
</div>
<!-- border spacing -->
<div class="slide intro">
<header><h1>Borders & Spacing</h1></header>
<section class="content">
</section>
</div>
<!-- border-collapse -->
<div class="slide">
<header><h1>border-collapse</h1></header>
<section class="content">
<pre>border-collapse: <em>separate</em> | collapse | inherit</pre>
<p>When the borders are collapsed <code>border-spacing</code> is relevant.</p>
</section>
</div>
<!-- border-spacing -->
<div class="slide">
<header><h1>border-spacing</h1></header>
<section class="content">
<pre>border-spacing: <length> <length>?;</pre>
<p>The look you want is probably:</p>
<pre>table, td, th {border: none;}
table {border-spacing: 5px 10px;}</pre>
<ul>
<li>one length: vertical and horizontal padding are the same.</li>
<li>two lengths: first is horizontal, second is vertical</li>
<li>Note: not TRouBLe</li>
<li>Irrelevant if <code>border-collapse: collapse</code></li>
<li>Empty space is part of the table, not the column, tbody, row or cell.</li>
</ul>
</section>
</div>
<!-- style the caption -->
<div class="slide object">
<header><h1>table spacing</h1></header>
<object data="files/padding.html"></object>
</div>
<!-- other -->
<div class="slide intro">
<header><h1>Other Table Properties</h1></header>
<section class="content">
</section>
</div>
<!-- -->
<div class="slide">
<header><h1>Empty Cells</h1></header>
<section class="content">
<pre>empty-cell: show | hide</pre>
<p>Similar to:</p>
<pre contenteditable>td:empty, th:empty {
visibility: none;
}</pre>
<ul>
<li>ignored if <code>border-collapse: separate</code></li>
<li>applies to elements with diplay of <code>table-cell</code></li>
<li>property of <code>table</code> or the cells themselves
</ul>
</section>
</div>
<!-- style the caption -->
<div class="slide object">
<header><h1>empty-cells</h1></header>
<object data="files/empty.html"></object>
</div>
<!-- -->
<div class="slide">
<header><h1>table-layout</h1></header>
<section class="content">
<pre contenteditable>table-layout: <em>auto</em> | fixed</pre>
<ul>
<li>fixed renders faster</li>
</ul>
</section>
</div>
<!-- -->
<div class="slide">
<header><h1>Vertical Align</h1></header>
<section class="content">
<pre contenteditable>vertical-align: baseline | sub | super | text-top |
text-bottom | middle | top | bottom |
<percentage> | <length></pre>
<dl class="deprecated">
<dt><code>baseline</code></dt>
<dd>Aligns the baseline of the cell with the baseline of all other cells in the row that are baseline-aligned.</dd>
<dt><code>top</code></dt>
<dd>Aligns the top padding edge of the cell with the top of the row.</dd>
<dt><code>middle</code></dt>
<dd>Centers the padding box of the cell within the row.</dd>
<dt><code>bottom</code></dt>
<dd>Aligns the bottom padding edge of the cell with the bottom of the row.</dd>
</dl>
<ul>
<li>applied to thead, tfoot, tbody, tr, td, th, but not table.</li>
<li>negative values are ok</li>
<li>additional values (sub, super, text-top, text-bottom, <length>, and <percentage>) equal <code>baseline</code>
</li>
</ul>
</section>
</div>
<!-- style the caption -->
<div class="slide object">
<header><h1>vertical-align</h1></header>
<object data="files/vertical.html"></object>
</div>
<!-- -->
<div class="slide">
<header><h1><code>display</code> property</h1></header>
<section class="content">
<pre>display: table | table-cell</pre>
<pre>display: table;
display: table-row-group;
display: table-header-group;
display: table-footer-group;
display: table-row;
display: table-cell;
display: table-column-group;
display: table-column;
display: table-caption;</pre>
<pre>.parent {
display: table;
}
.child {
display: table-cell;
vertical-align: baseline;
}</pre>
</section>
</div>
<!-- divider -->
<div class="slide intro">
<header><h1>columns</h1></header>
<section class="content">
</section>
</div>
<!-- -->
<div class="slide">
<header><h1><col> Syntax</h1></header>
<section class="content">
<pre contenteditable><table>
<caption>
2017–18 Primera División: Player of the week
</caption>
<em><colgroup>
<col class="week"/>
<col class="player"/>
<col class="club"/>
<col class="stat"/>
</colgroup></em>
<thead>....</pre>
</section>
</div>
<!-- style the caption -->
<div class="slide object">
<header><h1>styling columns</h1></header>
<object data="files/colstyle.html"></object>
</div>
<!-- Style a Table -->
<div class="slide">
<header><h1><a href="files/play.html">Try it out!</a></h1></header>
<section class="content">
<pre>display:
caption-side:
border-collapse:
border-spacing:
empty-cell:
table-layout:
vertical-align:</pre>
<pre>table
colgroup
colspan
thead
tbody
tfoot
tr
th
td
</pre><p><a href="files/play.html">Try it out!</a></p>
</section>
</div>
<!--NEXT-->
<div class="slide">
<header><h1>Grid</h1></header>
<section class="content">
<h1><a href="../grid/">Next ➹</a></h1></section>
</div>
<div class="slide dots">
<header><h1>Table of Content</h1></header>
<section>
<ol class="column2">
<li><a href="../intro">Introduction</a></li>
<li><a href="../selectors">Selectors</a></li>
<li><a href="../selectors">Specificity</a></li>
<li><a href="../generated">Generated Content</a></li>
<li><a href="../media">Media Queries</a></li>
<li><a href="../sass">Best Practices</a></li>
<li><a href="../debugging">Debugging</a></li>
<li><a href="../colors">Colors & Transparency </a></li>
<li><a href="../flexbox">Flexbox</a></li>
<li><a href="../tables">Tables</a></li>
<li><a href="../grid">Grids</a></li>
<li><a href="../borders">Backgrounds & Borders </a></li>
<li><a href="../gradients">Gradients</a></li>
<li><a href="../transforms">Transforms</a></li>
<li><a href="../animations">Transitions & Animation</a></li>
<li><a href="../other">Other Features</a></li>
</ol>
</section>
</div>
<!-- TOC -->
<div class="slide">
<header><h1>Links</h1></header>
<section class="content">
<ul>
</ul>
</section>
</div>
</div>
<header>
<nav>
<button class="cancel" id="back">Back</button><button class="done" id="next">Next</button>
</nav>
</header>
</div>
<script src="slides.js"></script>
</body>
</html>