Create table_2
This commit is contained in:
46
table_2
Normal file
46
table_2
Normal file
@@ -0,0 +1,46 @@
|
||||
<style>
|
||||
table {
|
||||
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
td, th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
tr:nth-child(even){background-color: #f2f2f2;}
|
||||
|
||||
tr:hover {background-color: #ddd;}
|
||||
|
||||
th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<th>Firstname</th>
|
||||
<th>Lastname</th>
|
||||
<th>Age</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Jill</td>
|
||||
<td>Smith</td>
|
||||
<td>50</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Eve</td>
|
||||
<td>Jackson</td>
|
||||
<td>94</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Marco</td>
|
||||
<td>Tyler</td>
|
||||
<td>17</td>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user