Skip to content

Commit 599a456

Browse files
separated the CSS from HTML
1 parent 575e5a3 commit 599a456

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

Form-Controls/style.css

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
body {
2+
font-family: system-ui, sans-serif;
3+
padding: 1rem;
4+
line-height: 1.5;
5+
}
6+
7+
form {
8+
max-width: 500px;
9+
margin: auto;
10+
}
11+
12+
fieldset {
13+
border: none;
14+
padding: 0;
15+
margin: 1.5rem;
16+
}
17+
18+
label {
19+
display: block;
20+
margin-bottom: 0.5rem;
21+
font-weight: 600;
22+
}
23+
24+
input, select, button {
25+
width: 100%;
26+
padding: 12px;
27+
font-size: 1rem;
28+
min-height: 48px;
29+
box-sizing: border-box;
30+
}
31+
32+
small {
33+
display: block;
34+
margin-top: 0.25rem;
35+
color: #666;
36+
}
37+
38+
button {
39+
padding: 0.75rem 1.5rem;
40+
font-size: 1rem;
41+
background-color: #007BFF;
42+
color: white;
43+
border: none;
44+
cursor: pointer;
45+
}
46+
47+
button:hover {
48+
background-color: #0056b3;
49+
}
50+
51+
header, footer {
52+
text-align: center;
53+
margin-bottom: 2rem;
54+
}
55+
56+
footer p {
57+
font-size: 0.875rem;
58+
color: #666;
59+
}

0 commit comments

Comments
 (0)