Skip to content

Commit a877cc3

Browse files
committed
Improve form accessibility and responsive styling
1 parent e26027f commit a877cc3

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

Form-Controls/style.css

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ body {
77
}
88

99
.container {
10-
background-color: #bfbfbf;
11-
width: 500px;
10+
background-color: #f5f5f5;
11+
width: 100%;
12+
max-width: 500px;
1213
padding: 35px;
1314
font-size: 16px;
1415
border-radius: 10px;
@@ -31,7 +32,7 @@ header h1 {
3132
.field {
3233
background-color: #f1f1f1;
3334
padding: 10px;
34-
border: 2px solid white;
35+
border: 1px solid #ccc;
3536
display: flex;
3637
align-items: center;
3738
gap: 10px;
@@ -48,6 +49,13 @@ select {
4849
padding: 6px;
4950
}
5051

52+
input:focus,
53+
select:focus,
54+
button:focus {
55+
outline: 3px solid #4f46e5;
56+
outline-offset: 2px;
57+
}
58+
5159
.submit_field {
5260
text-align: right;
5361
margin-top: 10px;
@@ -61,3 +69,9 @@ select {
6169
cursor: pointer;
6270
font-weight: bold;
6371
}
72+
73+
footer {
74+
text-align: center;
75+
margin-top: 20px;
76+
font-size: 14px;
77+
}

0 commit comments

Comments
 (0)