Skip to content

Commit 8576e9d

Browse files
committed
Added Grid Container
1 parent 0728ba1 commit 8576e9d

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

Form-Controls/index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ <h2> Verify your order and details below:</h2>
1919

2020
<!-- REQUIREMENTS:
2121
Each requirement is listed as a comment with the corresponding code below it-->
22+
23+
<div class="grid-container">
24+
2225
<!-- 1.Customer's name - ensure it contains at least two non-space characters. -->
2326
<div>
2427
<p>
@@ -40,7 +43,9 @@ <h2> Verify your order and details below:</h2>
4043
<p>
4144
<label for="T-Shirt Colour"> T-Shirt Colour: </label>
4245
<select name="T-Shirt Colour" id="T-Shirt Colour">
46+
4347
<option selected disabled > Select a colour </option>
48+
4449
<option label="Red" value="Red"> Red </option>
4550

4651
<option label="Blue" value="Blue"> Blue </option>
@@ -52,9 +57,9 @@ <h2> Verify your order and details below:</h2>
5257

5358
<!-- 4.Provide size options -XS, S, M, L, XL, XXL -->
5459
<div>
55-
<p>T-Shirt Size:</p>
56-
57-
<p>
60+
<p>T-Shirt Size:</p>
61+
62+
<p>
5863
<label>XS:</label>
5964
<input type = "radio" id = "XS" name = "Size" value = "XS">
6065

@@ -74,6 +79,9 @@ <h2> Verify your order and details below:</h2>
7479
<input type = "radio" id = "XXL" name = "Size" value = "XXL">
7580
</p>
7681
</div>
82+
</div>
83+
84+
<br>
7785

7886
<div>
7987
<button type="submit">Submit</button>

Form-Controls/mystyle.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ h2 {font-weight: lighter;}
1010
/* Paragraph */
1111

1212
p {font-family: verdana;
13-
font-size: 90%;}
13+
font-size: 90%;}
14+
15+
.grid-container {border-style: solid;
16+
border-width: 1px;
17+
padding: 5px;
18+
max-width:min-content;}
19+
20+
.column {align-content: center;}

0 commit comments

Comments
 (0)