tabulka
This commit is contained in:
33
stranky/tabulka.css
Normal file
33
stranky/tabulka.css
Normal file
@@ -0,0 +1,33 @@
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
font-size: 18px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 12px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
thead {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
tbody tr:nth-child(even) {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background-color: #f1f1f1;
|
||||
}
|
32
stranky/tabulka.html
Normal file
32
stranky/tabulka.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<head>
|
||||
<link rel="stylesheet" hrer="tabulka.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Sample Table</h1>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Age</th>
|
||||
<th>Occupation</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>John Doe</td>
|
||||
<td>30</td>
|
||||
<td>Software Engineer</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jane Smith</td>
|
||||
<td>25</td>
|
||||
<td>Graphic Designer</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mike Johnson</td>
|
||||
<td>35</td>
|
||||
<td>Project Manager</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
Reference in New Issue
Block a user