DmitrMakeev commited on
Commit
3deedbb
·
verified ·
1 Parent(s): 0f7a0c6

Update contacts.html

Browse files
Files changed (1) hide show
  1. contacts.html +24 -3
contacts.html CHANGED
@@ -5,17 +5,38 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
  <title>Contacts</title>
7
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  table {
9
  width: 70%;
10
  border-collapse: collapse;
 
 
11
  }
12
  th, td {
13
- border: 1px solid black;
14
  padding: 8px;
15
  text-align: left;
16
  }
17
  th {
18
- background-color: #f2f2f2;
 
 
 
 
 
19
  }
20
  </style>
21
  </head>
@@ -50,4 +71,4 @@
50
  {% endfor %}
51
  </table>
52
  </body>
53
- </html>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
  <title>Contacts</title>
7
  <style>
8
+ body {
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: center;
12
+ justify-content: flex-start; /* Изменено с center на flex-start */
13
+ height: 100vh;
14
+ margin: 0;
15
+ background-color: #4CAF50; /* Зеленоватый фон */
16
+ }
17
+ h1 {
18
+ text-align: center; /* Центрирование текста заголовка */
19
+ margin-top: 20px; /* Добавлено небольшое расстояние сверху */
20
+ color: white; /* Белый цвет текста для контраста */
21
+ }
22
  table {
23
  width: 70%;
24
  border-collapse: collapse;
25
+ border: 2px solid #2E7D32; /* Темно-зеленая рамка */
26
+ margin-top: 20px; /* Добавлено небольшое расстояние сверху */
27
  }
28
  th, td {
29
+ border: 1px solid #2E7D32; /* Темно-зеленая рамка для ячеек */
30
  padding: 8px;
31
  text-align: left;
32
  }
33
  th {
34
+ background-color: #81C784; /* Светло-зеленый фон для заголовков */
35
+ color: black; /* Черные надписи */
36
+ }
37
+ td {
38
+ background-color: white; /* Белый фон для ячеек */
39
+ color: black; /* Черные надписи */
40
  }
41
  </style>
42
  </head>
 
71
  {% endfor %}
72
  </table>
73
  </body>
74
+ </html>