Table price commit

main
anzorzakriev 2023-03-14 17:21:54 +03:00
commit af8b03ea81
2 changed files with 65 additions and 0 deletions

48
index.html 100644
View File

@ -0,0 +1,48 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Выравнивание содержимого в ячейках</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<table>
<th colspan="5">Order#13</th>
<tr>
<th>#</th>
<th>Product</th>
<th>Price</th>
<th>Amount</th>
<th>Sum</th>
</tr>
<tr>
<td>1</td>
<td>Guitar</td>
<td>132$</td>
<td>1</td>
<td>132$</td>
</tr>
<tr>
<td>2</td>
<td>Bass</td>
<td>177$</td>
<td>1</td>
<td>177$</td>
</tr>
<tr>
<th align ="right"rowspan="2" colspan="3">Subtotal:</th>
<td>1</td>
<td>309$</td>
</tr>
<tr>
<th align ="right"colspan="2">VAT 25$</th>
</tr>
<tr></tr>
<tr>
<th align ="right" colspan="5">334$</th>
</tr>
</table>
</body>
</html>

17
style.css 100644
View File

@ -0,0 +1,17 @@
table {
border-collapse: collapse;
border: 2px solid black;
}
td {
padding: 5px;
padding-right: 10px;
border: 1px solid black;
}
th {
padding: 10px;
border: 1px solid black;
}