Skip to content

Commit

Permalink
Update ex023 e ex024
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmrd committed Nov 17, 2024
1 parent bebd6bb commit 6c3e43f
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ex023/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ body {

table {
width: 300px;
height: 300px;
border-collapse: collapse;
}

Expand All @@ -20,4 +21,5 @@ table tr.row2 {
table td {
border: 2px solid black;
text-align: center;
vertical-align: middle;
}
Binary file added ex024/favicon.ico
Binary file not shown.
41 changes: 41 additions & 0 deletions ex024/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tabelas</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<h1>
Uso de tabelas grandes.
</h1>
<table>
<thead>
<th>Estado</th>
<th>População</th>
</thead>
<tbody>
<tr>
<td>São Paulo</td>
<td class="num">44 411 238</td>
</tr>
<tr>
<td>Minas Gerais</td>
<td class="num">20 538 718 </td>
</tr>
<tr>
<td>Rio de Janeiro</td>
<td class="num">16 054 524</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Total de Habitantes</th>
<td class="num"><strong>81 004 480</strong></td>
</tr>
</tfoot>
</table>
</body>
</html>
35 changes: 35 additions & 0 deletions ex024/styles/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@charset "UTF-8";

body {
font-family: Arial, Helvetica, sans-serif;
}

table {
width: 500px;
border-collapse: collapse;
}

thead {
color: white;
background-color: gray;
}

tfoot {
color: white;
background-color: gray;
}

td, th {
border: 2px solid black;
padding: 10px;
text-align: center;
vertical-align: middle;
}

td {
text-align: left;
}

td.num {
text-align: right;
}

0 comments on commit 6c3e43f

Please sign in to comment.