html code:
Šis ir tabulas virsraksts, kas aizņem tabulas platumu un centrējas
| 18 |
|
|
|
1 |
2 |
3 |
4 |
| 19 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
| 20 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
| 21 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
| 22 |
26 |
27 |
28 |
29 |
30 |
31 |
|
| Nedeļa |
2025. gada maijs |
| Pirmdiena |
Otradiena |
Trešdiena |
Ceturtdiena |
Piektdiena |
Sestdiena |
Svētdiena |
css code:
table {
width: 1000px;
border: 3px dotted blue;
padding:5px;
border-spacing: 5px;
}
th,td {
border: 1px solid black;
}
td:nth-child(1) {
background-color: lime;
text-align: center;
color: pink;
height: 10px;
}
tr:nth-child(2) th:nth-child(even) {
background-color: green;
color: white;
}
tr:nth-child(1) th:nth-child(2) {
background-color: green;
color: white;
height: 75px;
font-size: 30px;
}
tr:nth-child(2) th:nth-child(odd) {
background-color: blue;
color: pink;
}
tr:nth-child(1) th:nth-child(1) {
background-color: rgb(0, 140, 255);
color: pink;
}
td:nth-child(7), td:nth-child(8) {
background-color: yellow;
}