Presentation of Data
- Presenting
- Comparing
- Sorting
- Calculating
- Cross Referencing
NOT for presentation
Estelle Weyl | @estellevw | Github | Press → to advance, 2 for comments, 4 to read/write notes.
Presentation of Data
NOT for presentation
<table> <caption></caption> <colgroup> <col/> </colgroup> <thead> <tr> <th></th> </tr> </thead> <tbody> <tr> <td></td> </tr> </tbody> <tfoot> <tr> <th></th> </tr> </tfoot> </table>
<table> <caption>Table Caption</caption> <colgroup> <col/> </colgroup> <thead></thead> <tbody></tbody> <tfoot></tfoot> </table>
caption-side
table
caption-side
propertyPut on the <table>
, not the <caption>
.
supported
caption-side: top; caption-side: bottom;
Experimental
caption-side: left; caption-side: right; caption-side: top-outside; caption-side: bottom-outside;
In the specification
caption-side: inline-start; caption-side: inline-end;
deprecated:
<table align="left | top | right | bottom">
caption-side
property<caption>
stylingborder-collapse: separate | collapse | inherit
When the borders are collapsed border-spacing
is relevant.
border-spacing: <length> <length>?;
The look you want is probably:
table, td, th {border: none;} table {border-spacing: 5px 10px;}
border-collapse: collapse
empty-cell: show | hide
Similar to:
td:empty, th:empty { visibility: none; }
border-collapse: separate
table-cell
table
or the cells themselves
table-layout: auto | fixed
vertical-align: baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>
baseline
top
middle
bottom
baseline
display
propertydisplay: table | table-cell
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;
.parent { display: table; } .child { display: table-cell; vertical-align: baseline; }
<table> <caption> 2017–18 Primera División: Player of the week </caption> <colgroup> <col class="week"/> <col class="player"/> <col class="club"/> <col class="stat"/> </colgroup> <thead>....
display: caption-side: border-collapse: border-spacing: empty-cell: table-layout: vertical-align:
table colgroup colspan thead tbody tfoot tr th td