-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss-table-properties.html
92 lines (85 loc) · 1.43 KB
/
css-table-properties.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<title>Css Table</title>
<style type="text/css">
body{
font-family: cursive;
}
table{
width: 100%;
/*border-spacing: 20px;*/
/*border-collapse: collapse/separate; */
/*tp show or hide empty-cells: */
/*empty-cells: show;*/
/*auto / fixed/*/
table-layout: auto;
}
table,th,td{
border:1px solid red;
}
td{
vertical-align: top;
/*t/b/l/r*/
padding: 20px;
}
caption{
caption-side: bottom;
}
/*psedo classes*/
tr:hover{
background: lightgreen;
}
td:hover{
background: hotpink;
}
/**/
tr:nth-child(odd){
background: red;
}
</style>
</head>
<body>
<!--
?? -> for table
border-spacing
border-collapse
verticle-align
caption-side
empty-cells
table-layout
-->
<table>
<caption>caption Title</caption>
<thead>
<tr>
<th>Name</th>
<th>Job</th>
<th>Year</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jahid</td>
<td>Soft dev Lorem ipsum dolor, sit amet consectetur, adipisicing elit. Nostrum, ut.</td>
<td>2016</td>
</tr>
<tr>
<td>Vishal</td>
<td>SoWEcft dev</td>
<td></td>
</tr>
<tr>
<td>sadd</td>
<td>Soft dev</td>
<td>2016</td>
</tr>
<tr>
<td>sad</td>
<td>sad dev</td>
<td>2016</td>
</tr>
</tbody>
</table>
</body>
</html>