Skip to content

Commit 22f1337

Browse files
committed
JohnRobinson/Form
1 parent a94f1b6 commit 22f1337

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Form-Controls/index.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
body {
2+
font-family: Arial, sans-serif;
3+
padding: 20px;
4+
background-color: Pink;
5+
}
6+
h2 {
7+
text-align: center;
8+
}
9+
10+
.form-group {
11+
width: 60%;
12+
background: white;
13+
text-align: left;
14+
display: block;
15+
margin: 0 auto;
16+
padding: 10px;
17+
border-radius: 8px;
18+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
19+
}
20+
21+
label {
22+
display: block;
23+
margin-bottom: 5px;
24+
font-weight: 600;
25+
}
26+
27+
input[type="text"],
28+
input[type="email"],
29+
select {
30+
width: 100%;
31+
padding: 8px;
32+
border: 1px solid #ccc;
33+
border-radius: 4px;
34+
box-sizing: border-box; /* Crucial for width alignment */
35+
}

Form-Controls/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
<link href="index.css" rel="stylesheet">
45
<meta charset="utf-8" />
56
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
67
<title>My form exercise</title>

0 commit comments

Comments
 (0)