diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..4d9062927 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -1,4 +1,4 @@ - + @@ -6,6 +6,7 @@ My form exercise +
@@ -13,15 +14,59 @@

Product Pick

- + Requirements: + - Name: required, at least 2 non-space characters + - Email: required, valid email format + - Colour: required, choose 1 of 3 options + - Size: required, choose 1 of 6 sizes + - No form action needed for this project + --> +
+ + +
+
+ + +
+
+ Colour + + + + + + +
+
+ + +
+
diff --git a/Form-Controls/style.css b/Form-Controls/style.css new file mode 100644 index 000000000..bbfbc9b3c --- /dev/null +++ b/Form-Controls/style.css @@ -0,0 +1,16 @@ + input[type="radio"] { + width: 20px; + height: 20px; + margin: 8px; + } + + label { + display: inline-flex; + align-items: center; + padding: 6px 4px; + } + + button[type="submit"] { + padding: 10px 20px; + min-height: 44px; + }