-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path13.tables.css
More file actions
50 lines (42 loc) · 803 Bytes
/
13.tables.css
File metadata and controls
50 lines (42 loc) · 803 Bytes
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
/* Tablas */
body {
background-color: rgb(150, 224, 200);
padding: 10px;
}
/* table, td, th {
border: 1px solid black;
} */
table {
border-collapse: collapse;
width: 80%;
/* Este margin es para centrar la tabla: */
margin: 10px auto;
margin-bottom: 20px;
}
th {
height: 70px;
}
td {
padding-left: 20px;
height: 30px;
/* Alineación vertical de texto: */
vertical-align: center;
}
th, td {
border-bottom: 1px solid #111;
}
tr:hover:not(:first-of-type) {
background-color: coral;
}
tr:first-of-type {
background-color: #111;
color: white;
}
/* Arreglo el hover y bg-color de tbody > tr: */
tbody tr:first-of-type {
background-color: unset;
color: black;
}
tbody tr:hover:first-of-type {
background-color: coral;
}