-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArtwork Highlights_Interactive Table Display.html
More file actions
43 lines (41 loc) · 1.2 KB
/
Artwork Highlights_Interactive Table Display.html
File metadata and controls
43 lines (41 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<title>Your Webpage</title>
<style>
/* Style for odd table rows */
table tr:nth-child(odd) {
background-color: #f2f2f2; /* Light grey background for odd rows */
}
/* Style for even table rows - This isn't necessary if you want all rows white by default, as declared above. But it's included here for completeness. */
table tr:nth-child(even) {
background-color: #e7e7e7; /* Slightly different grey for even rows */
}
/* Style for when hovering over table rows */
table tr:hover {
background-color: #9e9e9e; /* Darker grey when hovering */
color: black;
}
</style>
</head>
<body>
<table>
<tr>
<th>Title</th>
<th>Artist</th>
<th>Year</th>
</tr>
<tr>
<td>The Death of Marat</td>
<td>Jacques-Louis David</td>
<td>1793</td>
</tr>
<tr>
<td>Burial at Ornans</td>
<td>Gustave Courbet</td>
<td>1849</td>
</tr>
<!-- More rows... -->
</table>
</body>
</html>