home > 『Web標準の教科書』読者サポートページ > 第3章 第11節
第3章 第11節(p.250-260)
table { display: table }
tr { display: table-row }
thead { display: table-header-group }
tbody { display: table-row-group }
tfoot { display: table-footer-group }
col { display: table-column }
colgroup { display: table-column-group }
td, th { display: table-cell }
caption { display: table-caption }
table {
margin: 5px;
border: 1px solid black;
}
caption {
caption-side: top;
margin: 5px;
font-weight: bold;
text-align: left;
}
th, td {
padding: 3px;
border: 1px solid black;
}
table {
width: 70%;
margin: 5px;
border: 1px solid black;
table-layout: fixed;
}
table {
margin: 5px;
border-collapse: collapse;
border: 2px solid black;
}
th, td {
padding: 3px;
border-top: 1px solid gray;
border-left: 1px solid gray;
}
table {
margin: 5px;
border-collapse: collapse;
border: 1px solid black;
}
th, td {
padding: 3px;
border-top: 1px solid gray;
border-left: 1px solid gray;
}
table {
margin: 5px;
border-collapse: separate;
border-spacing: 5px;
border: 1px solid black;
background-color: silver;
}
caption {
caption-side: top;
margin: 5px;
font-weight: bold;
text-align: left;
}
th, td {
padding: 3px;
border: 1px solid black;
background-color: white;
}