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

Product Pick

-
-
-
- - -
-
- - + + + + + My form control + + + + + +
+

Product Pick

+
+
+
+
+ Personal Information + + + + +
+ +
+ Please select your color + + + + + + + + + +
+ +
+ Please select a size + + + +
+ + +
+
+ + + diff --git a/Form-Controls/style.css b/Form-Controls/style.css new file mode 100644 index 000000000..8f17face3 --- /dev/null +++ b/Form-Controls/style.css @@ -0,0 +1,88 @@ +header { + background-color: #49bb93; + color: white; + text-align: center; + padding: 20px; +} +h1 { + margin: 0; +} +fieldset { + margin-bottom: 20px; + padding: 15px; + border: 1px solid #bbb; + border-radius: 4px; +} +legend { + font-weight: bold; + padding: 05px; +} + +fieldset input[type="radio"] { + margin-right: 5px; +} + +fieldset label { + display: inline; + margin-right: 15px; + font-weight: normal; +} + +body { + font-family: Arial, sans-serif; + background-color: #f5f7fa; + margin: 0; + padding: 0; + color: #333; +} +main { + display: flex; + justify-content: center; + padding: 30px 15px; +} +form { + background-color: white; + padding: 25px; + width: 100%; + max-width: 500px; + border-radius: 8px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); +} +div { + margin-bottom: 20px; +} +label { + display: flex; + margin-bottom: 5px; + font-weight: bold; +} +input[type="text"], +input[type="email"], +select { + width: 100%; + padding: 10px; + border: 1px solid #bbb; + border-radius: 4px; + font-size: 1rem; +} +input[type="submit"] { + width: 100%; + background-color: #49bb93; + color: white; + border: none; + padding: 12px; + border-radius: 4px; + font-size: 1rem; + cursor: pointer; +} + +input[type="submit"]:hover { + background-color: #49bb93; +} +footer { + text-align: center; + background-color: #49bb93; + color: white; + padding: 15px; + margin-top: 20px; +} \ No newline at end of file