-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml_task5style.css
89 lines (75 loc) · 1.27 KB
/
html_task5style.css
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
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
padding: 20px;
}
h2 {
margin-top: 0px;
text-align: center;
font-weight: bold;
color: rgb(16, 36, 249);
}
form {
display: flex;
flex-direction: column;
width: 700px;
}
.row {
display: flex;
}
.row .cell {
display: flex;
flex-basis: 200px;
border: 1px solid #888888;
padding: 5px;
}
.cell-1 {
flex-grow: 1;
}
.cell-1 span {
flex-grow: 1;
text-align: right;
}
.row .cell-1-2:nth-of-type(1) label,
input[type="text"],
input[type="password"],
input[type="email"] {
flex-grow: 1;
}
.row .cell:nth-of-type(2) {
flex-basis: 500px;
}
.container {
width: min-content;
padding: 20px;
background-color: #fff;
border: 1px solid #000;
border-radius: 5px;
}
label {
font-weight: bold;
color: #333;
text-align: right;
padding-right: 10px;
line-height: 24px;
}
.table-cell {
display: table-cell;
padding: 8px;
border: 1px solid #000;
}
input[type="radio"],
input[type="checkbox"] {
margin-right: 5px;
}
.checkbox-label {
margin-right: 15px;
}
.btn-container {
text-align: center;
margin-top: 20px;
}