diff --git a/Form-Controls/css/style.css b/Form-Controls/css/style.css new file mode 100644 index 000000000..015b2273b --- /dev/null +++ b/Form-Controls/css/style.css @@ -0,0 +1,54 @@ +body{ + position: relative; + height: 100%; +} + +header{ + height: 30px; + text-align: center; +} + +h1{ + font-family: 'Times New Roman', Times, serif; + font-size: 1.5rem; +} + +fieldset{ + background-color: #becce2; + border: 2px solid #c0cde0; + border-style: solid; + border-radius: 0.5em; + margin: 1em auto; + padding: 1em; + width: 40em; + max-width: 800px; +} + +legend{ + color: #222; + background-color: #f6f9ff; + font-size: 90%; + padding: 1em 2em; + border: solid 1px #becce2; + border-radius: 0.3em; +} + +fieldset > div{ + padding: 0.5em 3em; + display: grid; + grid-template-columns: 2fr 4fr; +} + +input, select, button{ + border: solid 1px #becce2; + padding: 4px; + font-size: 1em; + border-radius: 0.3em; +} + +footer{ + position: fixed; + bottom: 0; + width: 100%; + text-align: center; +} diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..4e8852088 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -3,9 +3,10 @@ - My form exercise + My Sprint 1 form controls exercise +
@@ -13,15 +14,47 @@

Product Pick

- +
+ Person name and email +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ Create a form that can collect + name, email, preferred tshirt colour and size from user-->