-
Notifications
You must be signed in to change notification settings - Fork 0
/
tableSpan.html
56 lines (56 loc) · 1.64 KB
/
tableSpan.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Using colspan and rowspan</title>
<style type="text/css">
table { border-collapse: collapse; background-color: #EEEEEE;}
th, td { padding: 8px; }
th { background-color: #C2EAFD; }
.cspan { text-align: center; }
</style>
</head>
<body>
<h1>Using colspan and rowspan</h1>
<table>
<caption>My Schedule</caption>
<tr>
<th></th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
</tr>
<tr>
<th>Breakfast</th>
<td>In Lair</td>
<td>With Cronies</td>
<td>In Lair</td>
<td>In Lair</td>
<td>In Lair</td>
</tr>
<tr>
<th>Morning</th>
<td colspan="2" class="cspan">Design Traps</td>
<td colspan="3" class="cspan">Improve Hideout</td>
</tr>
<tr>
<th>Afternoon</th>
<td>Train Minions</td>
<td>Train Minions</td>
<td>Train Minions</td>
<td>Train Minions</td>
<td rowspan="2">World Domination</td>
</tr>
<tr>
<th>Evening</th>
<td>Maniacal Laughter</td>
<td>Maniacal Laughter</td>
<td>Maniacal Laughter</td>
<td>Maniacal Laughter</td>
</tr>
</table>
</body>
</html>