Skip to content

Commit d62854f

Browse files
Fixing latest issues
1 parent 8a13945 commit d62854f

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

Form-Controls/index.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8" />
4+
<meta charset="utf-8" >
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>My form exercise</title>
77
<meta name="description" content="Order form" />
@@ -31,20 +31,24 @@ <h1>Product Pick</h1>
3131
<label for="email">Please Enter your Email:</label>
3232
<input type="email" id="email" required /><br />
3333
</div>
34+
35+
3436
<div class="colorSelection">
35-
<label for="colorOption">Please pick a color:</label> <br />
37+
<p id="colors">Please pick a color:</p> <br />
3638
<div class="colorOption">
3739
<label for="blueOption">Blue</label>
38-
<div class="square" id="blueOptions">
40+
<div class="square" id="blueOptions">
3941
<input type="radio" name="color" id="blueOption" value="blue" />
4042
</div>
4143
</div>
44+
4245
<div class="colorOption">
4346
<label for="greenOption">Green</label>
4447
<div class="square" id="greenOptions">
4548
<input type="radio" name="color" id="greenOption" value="green" />
4649
</div>
4750
</div>
51+
4852
<div class="colorOption">
4953
<label for="redOption">Red</label>
5054
<div class="square" id="redOptions">
@@ -57,9 +61,13 @@ <h1>Product Pick</h1>
5761
/>
5862
</div>
5963
</div>
64+
65+
66+
67+
6068
</div>
6169
<div id="sizediv">
62-
<label for="sizeOption">Please select the t-shirt size:</label> <br />
70+
<p id="sizeOption">Please select the t-shirt size:</p> <br />
6371
<div class="colorSelection">
6472
<div class="sizeOption">
6573
<label for="xs">XS</label>
@@ -110,7 +118,7 @@ <h1>Product Pick</h1>
110118
</main>
111119

112120
<footer>
113-
<h5>By Abdennour Hachemi</h5>
121+
<p>By Abdennour Hachemi</p>
114122
</footer>
115123
</body>
116124
</html>

Form-Controls/styles.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
#sizediv {
32-
margin: 20px 20px;
32+
margin: 20px 0 0 20px;
3333
}
3434

3535
#fn,
@@ -38,16 +38,15 @@
3838
margin: 20px 20px;
3939
}
4040

41-
form
42-
43-
{
41+
form {
4442
padding-top: 2%;
4543
margin-right: 50%;
4644
margin-left: 25%;
4745
background-color: bisque;
4846
}
4947

50-
h1,h5{
48+
h1,
49+
h5 {
5150
margin-left: 30%;
5251
}
5352

@@ -63,4 +62,4 @@ input[type="submit"] {
6362
border-radius: 6px;
6463
cursor: pointer;
6564
transition: background-color 0.15s ease;
66-
}
65+
}

0 commit comments

Comments
 (0)