From 7be05c6616ff7c4add505a33242eaafb38d14101 Mon Sep 17 00:00:00 2001 From: AnnaFYZ <113105718+AnnaFYZ@users.noreply.github.com> Date: Wed, 22 Feb 2023 22:36:54 +0000 Subject: [PATCH 1/2] html written --- Form-Controls/index.html | 44 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 4344b144..249a3299 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -14,14 +14,54 @@

Product Pick

+ Enter order details below +
+ + +
+
+ + +
+
+ Choose the colour +
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+ +
From 1a3c67a165dd24c69e460eff5a0120a17c962621 Mon Sep 17 00:00:00 2001 From: AnnaFYZ <113105718+AnnaFYZ@users.noreply.github.com> Date: Thu, 23 Feb 2023 21:01:16 +0000 Subject: [PATCH 2/2] css --- Form-Controls/index.html | 34 +++++++----------- Form-Controls/styles.css | 77 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 21 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 249a3299..1eeb9232 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -4,7 +4,7 @@ My form exercise - + @@ -14,31 +14,27 @@

Product Pick

- Enter order details below +

Enter order details below

- +
-
+
- Choose the colour -
+

Choose the colour

+
+ - -
-
- -
-
- + -
-
-
+ +
+
+
-
+
- - - -
diff --git a/Form-Controls/styles.css b/Form-Controls/styles.css index e69de29b..dac35880 100644 --- a/Form-Controls/styles.css +++ b/Form-Controls/styles.css @@ -0,0 +1,77 @@ +header { + text-align: center; +} + +footer { + font-style: italic; + position: fixed; + bottom: 0; + left: 4rem; + +} + +form { + display: flex; + flex-direction: column; + padding: 20px; + font-size: 24px; +} + +h3 { + text-align: center; +} + +div { + padding: 10px; +} + +input, label { + display: inline-block; +} + +label { + width: 200px; +} + +#color { + display: flex; + flex-direction: column; +} + +h4 { + font-weight: 200; + margin-bottom: 0; + margin-top: 0; + min-width: fit-content; +} + +.colors { + display: inline-flex; +} + +.colors label { + margin-left: 5px; +} + +select { + width: 170px; + font-size: 16px; +} + +#dateSection { + display: flex; + flex-direction: column; + flex-wrap: wrap; +} + +#dateSection label { + width: 100%; + margin-bottom: 10px; +} + +#date { + width: 40%; + align-self: end; + font-size: 16px; + margin-right: 4rem; +} \ No newline at end of file