Skip to content

Commit 15794a6

Browse files
author
Ogbemi mene
committed
my form control
1 parent 4409f25 commit 15794a6

2 files changed

Lines changed: 102 additions & 15 deletions

File tree

Form-Controls/Untitled-1.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
body {
3+
background-color: #f4f7f6;
4+
display: flex;
5+
justify-content: center;
6+
align-items: center;
7+
height: 100vh;
8+
margin: 0;
9+
}
10+
11+
form {
12+
background: #ffffff;
13+
padding: 2rem;
14+
border-radius: 8px;
15+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
16+
width: 100%;
17+
max-width: 400px;
18+
}
19+
20+
form div {
21+
margin-bottom: 1.5rem;
22+
display: flex;
23+
flex-direction: column;
24+
}
25+
label {
26+
font-weight: bold;
27+
font-size: 0.85rem;
28+
margin-bottom: 0.5rem;
29+
color: #333;
30+
text-transform: uppercase;
31+
}
32+
33+
input[type="text"],
34+
input[type="email"],
35+
select {
36+
padding: 10px;
37+
border: 1px solid #817575;
38+
border-radius: 4px;
39+
font-size: 1rem;
40+
outline: none;
41+
transition: border-color 0.3s;
42+
}
43+
44+
input:focus,
45+
select:focus {
46+
border-color: #007bff;
47+
}
48+
49+
button {
50+
width: 100%;
51+
padding: 12px;
52+
background-color: #28a745;
53+
color: white;
54+
border: none;
55+
border-radius: 4px;
56+
font-size: 1.1rem;
57+
cursor: pointer;
58+
transition: background-color 0.3s;
59+
}
60+
61+
button:hover {
62+
background-color: #218838;
63+
}

Form-Controls/index.html

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,43 @@
99
</head>
1010
<body>
1111
<header>
12+
1213
<h1>Product Pick</h1>
13-
</header>
14-
<main>
15-
<form>
16-
<!-- write your html here-->
17-
<!--
18-
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
20-
</form>
21-
</main>
22-
<footer>
23-
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
25-
</footer>
26-
</body>
27-
</html>
14+
15+
<body>
16+
<form action="T-shirt.html" method="GET">
17+
18+
<div>
19+
<label for="name">NAME</label>
20+
<input type="text" name="name" id="name" placeholder="name" value="name" required>
21+
</div>
22+
23+
<div>
24+
<label for="email">EMAIL</label>
25+
<input type="email" name="email" id="email" placeholder="email" value="email" required>
26+
</div>
27+
28+
<div>
29+
30+
<label for="colour">colour of T-shirt</label>
31+
<select name="colour" id="colour">
32+
<option value="red">red</option>
33+
<option value="blue">blue</option>
34+
<option value="green">green</option>
35+
</select>
36+
</div>
37+
38+
<div>
39+
40+
<label for="size">size of T-shirt</label>
41+
42+
<select name="size" id="size" required>
43+
<option value="S">S</option>
44+
<option value="M">M</option>
45+
<option value="L">L</option>
46+
<option value="XL">XL</option>
47+
<option value="XXL">XXL</option>
48+
</select>
49+
</div>
50+
51+
<button>Submit</button>

0 commit comments

Comments
 (0)