המאפיין caption-side
מגדיר את מיקום התווית של הטבלה (caption) ביחס לטבלה.
להלן דוגמה לשימוש במאפיין caption-side
:
כותרת 1 | כותרת 2 |
---|---|
תא 1 | תא 2 |
<style>
table {
width: 100%;
}
caption {
caption-side: bottom;
font-weight: bold;
}
th, td {
border: 1px solid black;
padding: 8px;
}
</style>
<table>
<caption>תווית הטבלה</caption>
<tr>
<th>כותרת 1</th>
<th>כותרת 2</th>
</tr>
<tr>
<td>תא 1</td>
<td>תא 2</td>
</tr>
</table>
רק רגע