Skip to content

Commit 13b9006

Browse files
Reset Form-Controls to match main
1 parent 598a6ec commit 13b9006

2 files changed

Lines changed: 51 additions & 53 deletions

File tree

‎Form-Controls/index.css‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
body {
2+
text-align: center;
3+
background-color: rgb(162, 139, 139);
4+
}
5+
6+
fieldset{
7+
border-radius: 10px;
8+
padding: 3px;
9+
max-width: 450px;
10+
margin: 0 auto 12px auto;
11+
box-sizing: border-box;
12+
}
13+
14+
input{
15+
border: 2px solid #ddd;
16+
border-radius: 5px;
17+
background: #eee;
18+
padding: 2px;
19+
}
20+
21+
select {
22+
border: 2px solid #ddd;
23+
border-radius: 5px;
24+
background: #eee;
25+
padding: 2px;
26+
transition: 0.4s;
27+
}
28+
29+
select:hover,
30+
select:focus{
31+
background: rgb(117, 180, 232);
32+
color: white;
33+
}
34+
35+
button {
36+
padding: 5px;
37+
border: 2px solid #ddd;
38+
background: #eee;
39+
border-radius: 5px;
40+
cursor: pointer;
41+
}
42+
43+
button:hover,
44+
button:focus {
45+
background: rgb(117, 180, 232);
46+
color: white;
47+
}

‎Form-Controls/index.html‎

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,7 @@
66
<title>My form exercise</title>
77
<meta name="description" content="" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
9-
<style>
10-
body {
11-
text-align: center;
12-
background-color: rgb(162, 139, 139);
13-
}
14-
15-
fieldset{
16-
border-radius: 10px;
17-
padding: 3px;
18-
max-width: 450px;
19-
margin: 0 auto 12px auto;
20-
box-sizing: border-box;
21-
}
22-
23-
input{
24-
border: 2px solid #ddd;
25-
border-radius: 5px;
26-
background: #eee;
27-
padding: 2px;
28-
}
29-
30-
select {
31-
border: 2px solid #ddd;
32-
border-radius: 5px;
33-
background: #eee;
34-
padding: 2px;
35-
transition: 0.4s;
36-
}
37-
38-
select:hover,
39-
select:focus{
40-
background: rgb(117, 180, 232);
41-
color: white;
42-
}
43-
44-
button {
45-
padding: 5px;
46-
border: 2px solid #ddd;
47-
background: #eee;
48-
border-radius: 5px;
49-
cursor: pointer;
50-
}
51-
52-
button:hover,
53-
button:focus {
54-
background: rgb(117, 180, 232);
55-
color: white;
56-
}
57-
58-
</style>
9+
<link rel="stylesheet" href="index.css" />
5910
</head>
6011
<body>
6112

@@ -92,7 +43,7 @@ <h1>Product Pick</h1>
9243

9344
<p>
9445
<div>
95-
<input type="radio" name="color" id="colour_1">
46+
<input type="radio" name="color" id="colour_1" required>
9647
<label for="colour_1">Red</label>
9748
</div>
9849
<div>
@@ -114,8 +65,8 @@ <h1>Product Pick</h1>
11465
<legend>Shirt Size Options</legend>
11566

11667
<p>
117-
<select name="size" id="size" aria-label="Shirt Size Options">
118-
<option value="so">Please Select an Option</option>
68+
<select name="size" id="size" aria-label="Shirt Size Options" required>
69+
<option value="">Please Select an Option</option>
11970
<option value="xs">Extra Small</option>
12071
<option value="s">Small</option>
12172
<option value="m">Medium</option>

0 commit comments

Comments
 (0)