diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..6c65a599e 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -1,27 +1,124 @@ - + - + My form exercise - + + +

Product Pick

- - +
+ + +
+
+ +
+ +
+
+ + +
+

Please pick a color:


+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + + + +
+
+

Please select the t-shirt size:


+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+ diff --git a/Form-Controls/styles.css b/Form-Controls/styles.css new file mode 100644 index 000000000..32cbe5029 --- /dev/null +++ b/Form-Controls/styles.css @@ -0,0 +1,65 @@ +.colorSelection { + display: flex; + gap: 20px; + margin-left: 20px; + margin-top: 20px; +} + +.colorOption { + display: flex; + flex-direction: column; + align-items: center; +} + +.square { + height: 25px; + width: 25px; +} + +#blueOptions { + background-color: #180fcb; +} + +#greenOptions { + background-color: green; +} + +#redOptions { + background-color: red; +} + +#sizediv { + margin: 20px 0 0 20px; +} + +#fn, +#sn, +#em { + margin: 20px 20px; +} + +form { + padding-top: 2%; + margin-right: 50%; + margin-left: 25%; + background-color: bisque; +} + +h1, +h5 { + margin-left: 30%; +} + +button[type="submit"], +input[type="submit"] { + padding: 10px 20px; + margin-left: 35%; + font-size: 1rem; + font-family: inherit; + color: #fff; + background-color: #2563eb; + border: none; + border-radius: 6px; + cursor: pointer; + transition: background-color 0.15s ease; +}