diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..4e3712211 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -6,6 +6,8 @@ My form exercise + +
@@ -13,15 +15,51 @@

Product Pick

- - +
+ + +
+ +
+ + + +
+ + + +
+ +
+ + + +
+ +
+ +
- + diff --git a/Form-Controls/style.css b/Form-Controls/style.css new file mode 100644 index 000000000..463ce2dc7 --- /dev/null +++ b/Form-Controls/style.css @@ -0,0 +1,55 @@ +body { + font-family: Arial, sans-serif; + background-color: #f4f4f4; + margin: 0; +} + +header, +footer { + text-align: center; + padding: 1rem; +} + +main { + display: flex; + justify-content: center; +} + +form { + background-color: white; + padding: 2rem; + margin-top: 2rem; + width: 320px; + border-radius: 10px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); +} + +form div { + margin-bottom: 1rem; +} + +label { + display: block; + margin-bottom: 0.4rem; + font-weight: bold; +} + +input, +select, +button { + width: 100%; + padding: 0.6rem; + box-sizing: border-box; +} + +button { + background-color: black; + color: white; + border: none; + border-radius: 5px; + cursor: pointer; +} + +button:hover { + background-color: #333; +}