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

Product Pick

-
-
-
- - + + + + + + + + Form Controls + + +
+

Product Pick

+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+ +
+ + + +
+
- + + + + + + diff --git a/Form-Controls/style.css b/Form-Controls/style.css new file mode 100644 index 000000000..d50f39287 --- /dev/null +++ b/Form-Controls/style.css @@ -0,0 +1,70 @@ +* { + box-sizing: border-box; + margin: 0; +} + +:root { + --clr-font-base: #DCE1DE; + --clr-bg-base: #216869; + --clr-bg-accent1: #3B8C88; + --clr-bg-accent2: #55AFAF; + --clr-bg-accent3: #70D2D2; + --clr-bg-dark1: #1A5354; +} + +body { + font-family: "Poppins", sans-serif; + font-style: normal; + background-color: #570000; + color: #fff; +} + +main, header, footer { + margin: auto; + width: 90%; + max-width: 750px; +} + +form { + display: grid; + min-width: 350px; + gap: 1rem; + background-color: #280000; + padding: 2rem; + border-radius: 10px; +} + +form { + @media (width > 720px) { + grid-template-columns: 1fr 1fr; + } +} + +form button { + text-transform: uppercase; + background-color: #570000; + color: var(--clr-font-base); + font-weight: 500; + margin-top: 1rem; + height: 2.5rem; + border: none; + border-radius: 5px; + grid-column: 1 / -1; + justify-self: center; + width: 100%; +} + +input, button, select { + font: inherit; +} + +input, select { + width: 100%; + height: 2rem; + /* background-color: #570000; */ +} + +header h1, footer p { + text-align: center; + margin: 1.5rem; +}