Skip to content

Commit 79a02db

Browse files
CSS
1 parent 3d6dea3 commit 79a02db

1 file changed

Lines changed: 57 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,63 @@
66
<title>My form exercise</title>
77
<meta name="description" content="T-shirt order form where customers choose their size and colour." />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
9-
9+
<style>
10+
body {
11+
font-family: Arial, sans-serif;
12+
background-color: white;
13+
margin: 0;
14+
padding: 40px;
15+
16+
}
17+
18+
.form-group {
19+
margin-bottom: 20px;
20+
}
21+
22+
h1 {
23+
text-align: center;
24+
margin-bottom: 25px;
25+
}
26+
27+
.container {
28+
max-width: 500px;
29+
margin: auto;
30+
background: #ffffff;
31+
padding: 30px;
32+
border-radius: 10px;
33+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
34+
}
35+
36+
label {
37+
display: block;
38+
margin-bottom: 8px;
39+
font-weight: bold;
40+
}
41+
42+
input,
43+
select,
44+
button {
45+
width: 100%;
46+
padding: 10px;
47+
font-size: 16px;
48+
border: 1px solid #cccccc;
49+
border-radius: 5px;
50+
box-sizing: border-box;
51+
}
52+
53+
button {
54+
background-color: #000000;
55+
color: white;
56+
border: none;
57+
cursor: pointer;
58+
}
59+
60+
button:hover {
61+
opacity: 0.9;
62+
}
63+
64+
65+
</style>
1066
</head>
1167
<body>
1268
<header>

0 commit comments

Comments
 (0)