From 21c92ebcfe8292705bff990ad6caf26a805fd17c Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:57:34 +0100 Subject: [PATCH] defined form in html. added minor formatting --- contact/contact.css | 53 ++++++++++++++++++++++++++++++++++++++++++++ contact/contact.html | 28 +++++++++++++++++++++++ style/main.css | 1 - 3 files changed, 81 insertions(+), 1 deletion(-) diff --git a/contact/contact.css b/contact/contact.css index e69de29..777de6f 100644 --- a/contact/contact.css +++ b/contact/contact.css @@ -0,0 +1,53 @@ +form { + display: grid; + grid-template-columns: 50% 50%; + grid-template-rows: 30% 30% 30% 10%; + gap: 1em; +} + +input[type="text"] { + border: none; +} + +input[type="email"] { + border: none; +} + +input[type="tel"] { + border: none; +} + +input[type="radio"] { + accent-color: #f29602; +} + +#contact_details { + grid-row: 1; + display: grid; + grid-template-rows: 20% 20% 20% 20% 20%; + gap: 0.2em; +} + +#contact_details > input { + min-width: 40em; +} + +#contact_reason { + grid-row: 2; + display: grid; + grid-template-columns: 40% 60%; + gap: 0.2em; +} + +#contact_body { + grid-row: 3; +} + +#contact_body > textarea { + min-width: 40em; +} + +input[type="submit"] { + grid-row: 4; + max-width: 10em; +} \ No newline at end of file diff --git a/contact/contact.html b/contact/contact.html index 09473cf..a3d6227 100644 --- a/contact/contact.html +++ b/contact/contact.html @@ -30,6 +30,34 @@
+
+
+ + + + + +
+ +
+ +
+ + + + + + + + +
+
+ +
+ +
+ +