tables
Col Syntax
<table>
<caption>2017-18: Tennis</caption>
<colgroup>
<col class="week"/>
<col class="player"/>
<col class="club"/>
<col class="stat"/>
</colgroup>
</table>Setting styles will change the entire column, but limited attributes allowed
Caption
specifies title of table, always first child, inherits from table, good for accessibility
styled with caption-side, can be top, bottom; experimental in firefox is left, or right
table {
caption-side: top;
}
caption {
color: #CC0000;
}Border
If you want real table dividing, then
Could just add padding to th and td
Border-spacing
2 values: horizontal and vertical padding
If you make entire tr color, spacing wouldn't be color
Border-collapse
seperate(default), collapse(spacing irrelevant)
Other
Empty-Cell
Vertical Align
Recall baseline means have all the bottom first text line be aligned( significant if multiple font sizes)
General Beauty
Last updated